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_Pixmap.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_Pixmap.cxx') diff --git a/src/Fl_Pixmap.cxx b/src/Fl_Pixmap.cxx index eb030c615..0bb602e8e 100644 --- a/src/Fl_Pixmap.cxx +++ b/src/Fl_Pixmap.cxx @@ -74,10 +74,10 @@ void Fl_Pixmap::measure() { } void Fl_Pixmap::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_Pixmap::generic_device_draw(int XP, int YP, int WP, int HP, int cx, int cy) { // ignore empty or bad pixmap data: if (!data()) { draw_empty(XP, YP); -- cgit v1.2.3