1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-01 11:20:41 -08:00

(unload_color): Do nothing if PIXEL is -1.

This commit is contained in:
Gerd Moellmann 2001-07-10 12:20:02 +00:00
parent cefecbcf1d
commit 30a7ac224f

View file

@ -1631,9 +1631,12 @@ unload_color (f, pixel)
unsigned long pixel;
{
#ifdef HAVE_X_WINDOWS
BLOCK_INPUT;
x_free_colors (f, &pixel, 1);
UNBLOCK_INPUT;
if (pixel != -1)
{
BLOCK_INPUT;
x_free_colors (f, &pixel, 1);
UNBLOCK_INPUT;
}
#endif
}