changeset 2818:d1cfc6cbdbf7

* xfaces.c (unload_color): Don't try to unload the standard black or white pixel.
author Jim Blandy <jimb@redhat.com>
date Sun, 16 May 1993 00:23:33 +0000
parents d28c54ba888e
children 74380115ed5e
files src/xfaces.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Sat May 15 23:57:11 1993 +0000
+++ b/src/xfaces.c	Sun May 16 00:23:33 1993 +0000
@@ -406,7 +406,9 @@
 {
   Colormap cmap;
   Display *dpy = x_current_display;
-  if (pixel == FACE_DEFAULT)
+  if (pixel == FACE_DEFAULT
+      || pixel == BLACK_PIX_DEFAULT
+      || pixel == WHITE_PIX_DEFAULT)
     return;
   cmap = DefaultColormapOfScreen (DefaultScreenOfDisplay (x_current_display));
   BLOCK_INPUT;