diff options
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Graphics_Driver.H | 2 | ||||
| -rw-r--r-- | FL/Fl_Shared_Image.H | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 0a7282eee..57c8d2404 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -32,6 +32,7 @@ #include <stdlib.h> class Fl_Graphics_Driver; +class Fl_Shared_Image; /** a platform-specific class implementing a system font */ class Fl_Font_Descriptor #ifdef FL_DOXYGEN @@ -300,6 +301,7 @@ public: the image offset by the cx and cy arguments. */ virtual void draw(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, int cx, int cy) {} + virtual void draw(Fl_Shared_Image *img, int x, int y); virtual int draw_scaled(Fl_Image *img, int X, int Y, int W, int H); virtual void copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy); diff --git a/FL/Fl_Shared_Image.H b/FL/Fl_Shared_Image.H index 6d177c10b..bbc5ff5a8 100644 --- a/FL/Fl_Shared_Image.H +++ b/FL/Fl_Shared_Image.H @@ -41,7 +41,8 @@ class FL_EXPORT Fl_Shared_Image : public Fl_Image { friend class Fl_JPEG_Image; friend class Fl_PNG_Image; - + friend class Fl_Graphics_Driver; + private: static Fl_RGB_Scaling scaling_algorithm_; // method used to rescale RGB source images Fl_Image *scaled_image_; |
