Commit 0040b876 authored by Jason Rumney's avatar Jason Rumney

(x_build_heuristic_mask): Filter palette info from color.

parent b4aebae3
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment