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

(x_build_heuristic_mask): Filter palette info from color.

This commit is contained in:
Jason Rumney 2002-11-18 20:16:39 +00:00
parent b4aebae399
commit 0040b8760a

View file

@ -11061,7 +11061,8 @@ x_build_heuristic_mask (f, img, how)
{
char color_name[30];
sprintf (color_name, "#%04x%04x%04x", rgb[0], rgb[1], rgb[2]);
bg = x_alloc_image_color (f, img, build_string (color_name), 0);
bg = x_alloc_image_color (f, img, build_string (color_name), 0)
& 0xffffff; // Filter out palette info.
use_img_background = 0;
}
}