diff options
| author | Manolo Gouy <Manolo> | 2012-03-14 15:59:02 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2012-03-14 15:59:02 +0000 |
| commit | c41d3ac3f322c2008e0caa4b8d786b2b9b3fba0a (patch) | |
| tree | 22629274a8f0e14800e8a7c4af188a347de83b05 /src/Fl_Bitmap.cxx | |
| parent | da96b83903d0cb72272b43ce714fd69db619c038 (diff) | |
Fixed error in printed color of Fl_Bitmap
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9284 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Bitmap.cxx')
| -rw-r--r-- | src/Fl_Bitmap.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Bitmap.cxx b/src/Fl_Bitmap.cxx index 0ba280f7c..080471e54 100644 --- a/src/Fl_Bitmap.cxx +++ b/src/Fl_Bitmap.cxx @@ -304,8 +304,6 @@ void Fl_GDI_Graphics_Driver::draw(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, 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 @@ void Fl_GDI_Graphics_Driver::draw(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, 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 |
