From: Jason Rumney Date: Mon, 18 Nov 2002 20:16:39 +0000 (+0000) Subject: (x_build_heuristic_mask): Filter palette info from color. X-Git-Tag: ttn-vms-21-2-B4~12347 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0040b8760ab097cb0fd84dac84ecce59ddc112a2;p=emacs.git (x_build_heuristic_mask): Filter palette info from color. --- diff --git a/src/w32fns.c b/src/w32fns.c index 7037493e3a1..ab2e5237c61 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -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; } }