mirror of
https://github.com/fltk/fltk.git
synced 2026-06-08 01:46:00 +08:00
Corrected drawing of RGBA images to Fl_Image_Surface and to Fl_Copy_Surface objects under WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -219,7 +219,7 @@ void Fl_GDI_Graphics_Driver::copy_offscreen_with_alpha(int x,int y,int w,int h,H
|
||||
// first try to alpha blend
|
||||
// if to printer, always try alpha_blend
|
||||
if ( (fl_graphics_driver->class_name() == Fl_GDI_Printer_Graphics_Driver::class_id && fl_alpha_blend) ||
|
||||
(Fl_Surface_Device::surface() == Fl_Display_Device::display_device() && fl_can_do_alpha_blending() ) ) {
|
||||
(fl_graphics_driver->class_name() == Fl_GDI_Graphics_Driver::class_id && fl_can_do_alpha_blending()) ) {
|
||||
alpha_ok = fl_alpha_blend(fl_gc, x, y, w, h, new_gc, srcx, srcy, w, h, blendfunc);
|
||||
}
|
||||
// if that failed (it shouldn't), still copy the bitmap over, but now alpha is 1
|
||||
|
||||
Reference in New Issue
Block a user