diff src/w32fns.c @ 48444:7a9357cf0aa0

(x_build_heuristic_mask): Filter palette info from color.
author Jason Rumney <jasonr@gnu.org>
date Mon, 18 Nov 2002 20:16:39 +0000
parents 4d7b83cc03aa
children 2d334bd224b4
line wrap: on
line diff
--- 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;
 	}
     }