From fc95afb7f480305dce9d41ffcb20e8f7e3236d88 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 31 Mar 2010 09:29:35 +0000 Subject: fl_copy_offscreen_with_alpha: always call alpha_blend if not on display git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Double_Window.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx index 5e1268894..b17b900f1 100644 --- a/src/Fl_Double_Window.cxx +++ b/src/Fl_Double_Window.cxx @@ -153,10 +153,7 @@ void fl_copy_offscreen_with_alpha(int x,int y,int w,int h,HBITMAP bitmap,int src BOOL alpha_ok = 0; // first try to alpha blend int to_display = Fl_Device::current()->type() < 256; // true iff display output - if ( !to_display) { // ask if non-display device can alpha-blend pixel by pixel - alpha_ok = (GetDeviceCaps(fl_gc, SHADEBLENDCAPS) == SB_PIXEL_ALPHA); - } - if (alpha_ok || (to_display && fl_can_do_alpha_blending())) + if ( (!to_display) || fl_can_do_alpha_blending()) // if not on display, always try alpha_blend 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 if (!alpha_ok) -- cgit v1.2.3