summaryrefslogtreecommitdiff
path: root/src/Fl_Bitmap.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-04-14 13:07:34 +0000
committerManolo Gouy <Manolo>2010-04-14 13:07:34 +0000
commitbe9127c61aa32f95eb47bc7b1d586623914ee036 (patch)
tree6e845e7662fd77fae2fb114adb68bc030b78e980 /src/Fl_Bitmap.cxx
parent97c893ab5eb1a1f4954b8dbe5a7e421bd9c54089 (diff)
More logical use of Fl_Device::draw(<image class> *,...) functions
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Bitmap.cxx')
-rw-r--r--src/Fl_Bitmap.cxx8
1 files changed, 4 insertions, 4 deletions
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;