aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1993-05-16 00:23:33 +0000
committerJim Blandy <[email protected]>1993-05-16 00:23:33 +0000
commit32dc08666b5b8448113be6d4425885cd37c5d974 (patch)
treefc22c49196ec2ae5b3f6ea20992d109a47791b77 /src/xfaces.c
parent3dbc7e323668ef778206e8488b41e0c1c2df6bab (diff)
* xfaces.c (unload_color): Don't try to unload the standard black
or white pixel.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index e037d70381..225e993944 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -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;