# HG changeset patch # User Jason Rumney # Date 1037650599 0 # Node ID 7a9357cf0aa0c8c6773410d825ae2f83a4f132d6 # Parent b10a79762ecc3dd9541a56a7c877319d2fc0c077 (x_build_heuristic_mask): Filter palette info from color. diff -r b10a79762ecc -r 7a9357cf0aa0 src/w32fns.c --- a/src/w32fns.c Mon Nov 18 20:06:15 2002 +0000 +++ b/src/w32fns.c Mon Nov 18 20:16:39 2002 +0000 @@ -11061,7 +11061,8 @@ { 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; } }