diff options
| author | Manolo Gouy <Manolo> | 2010-03-25 13:59:00 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-03-25 13:59:00 +0000 |
| commit | d748d323b993c5560443aca2a13b2e0ded3a8c6d (patch) | |
| tree | 6fca476530786075e5fcc9bd5f24c1a83d1255e5 /src/Fl_Image.cxx | |
| parent | 309e47801322afea091619f9d5ac45fea04158ab (diff) | |
Reorganized code to allow compilation with Fl_Device, Fl_Display but without Fl_Abstract_Printer
(may be useful for embarked devices)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Image.cxx')
| -rw-r--r-- | src/Fl_Image.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx index e5a16ab51..cc544efd3 100644 --- a/src/Fl_Image.cxx +++ b/src/Fl_Image.cxx @@ -31,7 +31,6 @@ #include <FL/Fl_Widget.H> #include <FL/Fl_Menu_Item.H> #include <FL/Fl_Image.H> -#include <FL/Fl_Printer.H> #include "flstring.h" #ifdef WIN32 @@ -436,7 +435,7 @@ static void alpha_blend(Fl_RGB_Image *img, int X, int Y, int W, int H, int cx, i void Fl_RGB_Image::draw(int XP, int YP, int WP, int HP, int cx, int cy) { if(fl_device->type() == Fl_Device::postscript_device) { - ((Fl_Abstract_Printer*)fl_device)->draw(this, XP, YP, WP, HP, cx, cy); + fl_device->draw(this, XP, YP, WP, HP, cx, cy); return; } // Don't draw an empty image... |
