diff options
| author | Manolo Gouy <Manolo> | 2010-03-31 09:29:35 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-03-31 09:29:35 +0000 |
| commit | fc95afb7f480305dce9d41ffcb20e8f7e3236d88 (patch) | |
| tree | 16840b701838b19e38503eee05744584a3bbf0cb /src | |
| parent | 1d7e6edead2b6288945774a1a0fbf72493fe2ba1 (diff) | |
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
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 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) |
