diff options
| author | Manolo Gouy <Manolo> | 2010-04-14 13:07:34 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-04-14 13:07:34 +0000 |
| commit | be9127c61aa32f95eb47bc7b1d586623914ee036 (patch) | |
| tree | 6e845e7662fd77fae2fb114adb68bc030b78e980 /src/Fl_Device.cxx | |
| parent | 97c893ab5eb1a1f4954b8dbe5a7e421bd9c54089 (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_Device.cxx')
| -rw-r--r-- | src/Fl_Device.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx index 98a5ad8fa..9c76d3f6f 100644 --- a/src/Fl_Device.cxx +++ b/src/Fl_Device.cxx @@ -27,7 +27,6 @@ #include <FL/Fl.H> #include <FL/Fl_Device.H> -//#include <FL/fl_draw.H> #include <FL/Fl_Image.H> /** \brief Draws an Fl_Pixmap object to the device. @@ -35,9 +34,8 @@ Specifies a bounding box for the image, with the origin (upper left-hand corner) of the image offset by the cx and cy arguments. */ -void Fl_Device::draw(Fl_Pixmap *pxm,int XP, int YP, int WP, int HP, int cx, int cy) -{ - pxm->draw(XP, YP, WP, HP, cx, cy); +void Fl_Device::draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy) { + pxm->generic_device_draw(XP, YP, WP, HP, cx, cy); } /** \brief Draws an Fl_Bitmap object to the device. @@ -45,9 +43,8 @@ void Fl_Device::draw(Fl_Pixmap *pxm,int XP, int YP, int WP, int HP, int cx, int Specifies a bounding box for the image, with the origin (upper left-hand corner) of the image offset by the cx and cy arguments. */ -void Fl_Device::draw(Fl_Bitmap *bm,int XP, int YP, int WP, int HP, int cx, int cy) -{ - bm->draw(XP, YP, WP, HP, cx, cy); +void Fl_Device::draw(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, int cx, int cy) { + bm->generic_device_draw(XP, YP, WP, HP, cx, cy); } /** \brief Draws an Fl_RGB_Image object to the device. @@ -55,9 +52,8 @@ void Fl_Device::draw(Fl_Bitmap *bm,int XP, int YP, int WP, int HP, int cx, int c Specifies a bounding box for the image, with the origin (upper left-hand corner) of the image offset by the cx and cy arguments. */ -void Fl_Device::draw(Fl_RGB_Image *rgb,int XP, int YP, int WP, int HP, int cx, int cy) -{ - rgb->draw(XP, YP, WP, HP, cx, cy); +void Fl_Device::draw(Fl_RGB_Image *rgb, int XP, int YP, int WP, int HP, int cx, int cy) { + rgb->generic_device_draw(XP, YP, WP, HP, cx, cy); } /** |
