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:
parent
cefecbcf1d
commit
30a7ac224f
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue