Fix background color when drawing pixmap data both directly or as an Fl_Pixmap object.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12860 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
374ea9e9eb
commit
bd9a57be29
@ -203,7 +203,8 @@ int fl_convert_pixmap(const char*const* cdata, uchar* out, Fl_Color bg) {
|
||||
// assume "None" or "#transparent" for any errors
|
||||
// "bg" should be transparent...
|
||||
Fl::get_color(bg, c[0], c[1], c[2]);
|
||||
c[3] = 255;
|
||||
uchar **m = fl_graphics_driver->mask_bitmap();
|
||||
c[3] = (m && !*m) ? 255 : 0;
|
||||
if (Fl_Graphics_Driver::need_pixmap_bg_color) transparent_c = c;
|
||||
} // if parse
|
||||
} // for ncolors
|
||||
|
Loading…
x
Reference in New Issue
Block a user