Mercurial > emacs
comparison src/xfaces.c @ 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 | e97e96fb0cb8 |
children | 95010b414003 |
comparison
equal
deleted
inserted
replaced
2817:d28c54ba888e | 2818:d1cfc6cbdbf7 |
---|---|
404 struct frame *f; | 404 struct frame *f; |
405 Pixel pixel; | 405 Pixel pixel; |
406 { | 406 { |
407 Colormap cmap; | 407 Colormap cmap; |
408 Display *dpy = x_current_display; | 408 Display *dpy = x_current_display; |
409 if (pixel == FACE_DEFAULT) | 409 if (pixel == FACE_DEFAULT |
410 || pixel == BLACK_PIX_DEFAULT | |
411 || pixel == WHITE_PIX_DEFAULT) | |
410 return; | 412 return; |
411 cmap = DefaultColormapOfScreen (DefaultScreenOfDisplay (x_current_display)); | 413 cmap = DefaultColormapOfScreen (DefaultScreenOfDisplay (x_current_display)); |
412 BLOCK_INPUT; | 414 BLOCK_INPUT; |
413 XFreeColors (dpy, cmap, &pixel, 1, 0); | 415 XFreeColors (dpy, cmap, &pixel, 1, 0); |
414 UNBLOCK_INPUT; | 416 UNBLOCK_INPUT; |