Author: manolo
Date: 2010-03-31 02:29:35 -0700 (Wed, 31 Mar 2010)
New Revision: 7378
Log:
fl_copy_offscreen_with_alpha: always call alpha_blend if not on display

Modified:
   branches/branch-1.3/src/Fl_Double_Window.cxx

Modified: branches/branch-1.3/src/Fl_Double_Window.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Double_Window.cxx        2010-03-31 09:27:46 UTC 
(rev 7377)
+++ branches/branch-1.3/src/Fl_Double_Window.cxx        2010-03-31 09:29:35 UTC 
(rev 7378)
@@ -153,10 +153,7 @@
   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)

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to