mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 11:00:45 -08:00
(x_build_heuristic_mask): Filter palette info from color.
This commit is contained in:
parent
b4aebae399
commit
0040b8760a
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue