From eae09e7fa09c6a00988653ed67fe0d82f1861bff Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 30 Aug 2017 15:49:58 +0000 Subject: Create virtual Fl_Image::draw_scaled_(int X, int Y, int W, int H) and its implementations for image classes. This allows to use the virtual function mechanism to adapt scaled image drawing both to the image type and the graphics driver type. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12410 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Image.H | 2 ++ 1 file changed, 2 insertions(+) (limited to 'FL/Fl_Image.H') diff --git a/FL/Fl_Image.H b/FL/Fl_Image.H index 3f0ab6fa7..ae626772c 100644 --- a/FL/Fl_Image.H +++ b/FL/Fl_Image.H @@ -69,6 +69,7 @@ private: // Forbid use of copy constructor and assign operator Fl_Image & operator=(const Fl_Image &); Fl_Image(const Fl_Image &); + virtual int draw_scaled_(int X, int Y, int W, int H); protected: @@ -224,6 +225,7 @@ private: fl_uintptr_t id_; fl_uintptr_t mask_; float cache_scale_; // graphics scaling value when id_ was computed + virtual int draw_scaled_(int X, int Y, int W, int H); public: -- cgit v1.2.3