From be9127c61aa32f95eb47bc7b1d586623914ee036 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 14 Apr 2010 13:07:34 +0000 Subject: More logical use of Fl_Device::draw( *,...) functions git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Bitmap.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_Bitmap.cxx') diff --git a/src/Fl_Bitmap.cxx b/src/Fl_Bitmap.cxx index 3995c0773..13d5bcaee 100644 --- a/src/Fl_Bitmap.cxx +++ b/src/Fl_Bitmap.cxx @@ -248,10 +248,10 @@ Fl_Bitmask fl_create_alphamask(int w, int h, int d, int ld, const uchar *array) } void Fl_Bitmap::draw(int XP, int YP, int WP, int HP, int cx, int cy) { - if(fl_device->type() == Fl_Device::postscript_device) { - fl_device->draw(this, XP, YP, WP, HP, cx, cy); - return; - } + fl_device->draw(this, XP, YP, WP, HP, cx, cy); +} + +void Fl_Bitmap::generic_device_draw(int XP, int YP, int WP, int HP, int cx, int cy) { if (!array) { draw_empty(XP, YP); return; -- cgit v1.2.3