Author: manolo
Date: 2012-03-14 08:59:02 -0700 (Wed, 14 Mar 2012)
New Revision: 9284
Log:
Fixed error in printed color of Fl_Bitmap

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

Modified: branches/branch-1.3/src/Fl_Bitmap.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Bitmap.cxx       2012-03-14 09:51:22 UTC (rev 
9283)
+++ branches/branch-1.3/src/Fl_Bitmap.cxx       2012-03-14 15:59:02 UTC (rev 
9284)
@@ -304,8 +304,6 @@
     if (fl_TransparentBlt) use_print_algo = true;
   }
   if (use_print_algo) { // algorithm for bitmap output to Fl_GDI_Printer
-    Fl_Offscreen tmp_id = fl_create_offscreen(W, H);
-    fl_begin_offscreen(tmp_id);
     Fl_Color save_c = fl_color(); // save bitmap's desired color
     uchar r, g, b;
     Fl::get_color(save_c, r, g, b);
@@ -313,6 +311,8 @@
     g = 255-g;
     b = 255-b;
     Fl_Color background = fl_rgb_color(r, g, b); // a color very different 
from the bitmap's
+    Fl_Offscreen tmp_id = fl_create_offscreen(W, H);
+    fl_begin_offscreen(tmp_id);
     fl_color(background);
     fl_rectf(0,0,W,H); // use this color as offscreen background
     fl_color(save_c); // back to bitmap's color

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

Reply via email to