Author: manolo
Date: 2010-03-09 02:41:11 -0800 (Tue, 09 Mar 2010)
New Revision: 7232
Log:
Replacement of SetDIBitsToDevice by StrechDIBits when printing no longer useful.

Modified:
   branches/branch-1.3-Fl_Printer/src/fl_draw_image_win32.cxx

Modified: branches/branch-1.3-Fl_Printer/src/fl_draw_image_win32.cxx
===================================================================
--- branches/branch-1.3-Fl_Printer/src/fl_draw_image_win32.cxx  2010-03-08 
18:28:39 UTC (rev 7231)
+++ branches/branch-1.3-Fl_Printer/src/fl_draw_image_win32.cxx  2010-03-09 
10:41:11 UTC (rev 7232)
@@ -254,20 +254,6 @@
         }            
       }
     }
-  if(Fl_Device::current()->type() == Fl_Device::gdi_printer) {
-    // if print context, device and logical units are not equal, so 
SetDIBitsToDevice
-    // does not do the expected job, whereas StretchDIBits does it.
-    StretchDIBits(fl_gc, x, y+j-k, w, k, 0, 0, w, k,
-                     (LPSTR)((uchar*)buffer+(blocking-k)*linesize),
-                     &bmi,
-#if USE_COLORMAP
-                     indexed ? DIB_PAL_COLORS : DIB_RGB_COLORS
-#else
-                     DIB_RGB_COLORS
-#endif
-                     , SRCCOPY );
-    }
-    else {
       SetDIBitsToDevice(fl_gc, x, y+j-k, w, k, 0, 0, 0, k,
                        (LPSTR)((uchar*)buffer+(blocking-k)*linesize),
                        &bmi,
@@ -277,7 +263,6 @@
                        DIB_RGB_COLORS
 #endif
                        );
-    }
   }
 }
 

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

Reply via email to