diff options
| author | Manolo Gouy <Manolo> | 2014-09-23 10:36:58 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2014-09-23 10:36:58 +0000 |
| commit | 43d26240b5f4d797caabb85b37a0fb9a129a1bc5 (patch) | |
| tree | 9153d16fb37ff19cb73d6c626af96ec30b5dc244 /src | |
| parent | 023589e703053a43bee80f5328680729cbbad376 (diff) | |
Simpler implementation of Fl_GDI_Graphics_Driver::copy_offscreen_with_alpha() does just as well.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Double_Window.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx index 4a772971d..51371a23a 100644 --- a/src/Fl_Double_Window.cxx +++ b/src/Fl_Double_Window.cxx @@ -214,12 +214,9 @@ void Fl_GDI_Graphics_Driver::copy_offscreen_with_alpha(int x,int y,int w,int h,H HDC new_gc = CreateCompatibleDC(fl_gc); int save = SaveDC(new_gc); SelectObject(new_gc, bitmap); - fl_can_do_alpha_blending(); // make sure this is called BOOL alpha_ok = 0; // 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_graphics_driver->class_name() == Fl_GDI_Graphics_Driver::class_id && fl_can_do_alpha_blending()) ) { + if ( 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 |
