]> code.delx.au - gnu-emacs/commitdiff
* xfaces.c (unload_color): Don't try to unload the standard black
authorJim Blandy <jimb@redhat.com>
Sun, 16 May 1993 00:23:33 +0000 (00:23 +0000)
committerJim Blandy <jimb@redhat.com>
Sun, 16 May 1993 00:23:33 +0000 (00:23 +0000)
or white pixel.

src/xfaces.c

index e037d703812188c0ad281f0c91d7d8b49c28ff06..225e9939445172d76ac648831540ca422b51c075 100644 (file)
@@ -406,7 +406,9 @@ unload_color (f, pixel)
 {
   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;