summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Double_Window.cxx5
1 files changed, 1 insertions, 4 deletions
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)