]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_build_heuristic_mask): Filter palette info from color.
authorJason Rumney <jasonr@gnu.org>
Mon, 18 Nov 2002 20:16:39 +0000 (20:16 +0000)
committerJason Rumney <jasonr@gnu.org>
Mon, 18 Nov 2002 20:16:39 +0000 (20:16 +0000)
src/w32fns.c

index 7037493e3a1df350312d521120251657445afbdb..ab2e5237c619b5453c18f22e2de4e37d5c7fe320 100644 (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;
        }
     }