summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-09-12 12:02:38 +0000
committerManolo Gouy <Manolo>2016-09-12 12:02:38 +0000
commitb43a5cf1fe6cfa49d11841e180352f777f95d2a2 (patch)
tree24d63a66836b7eb0b769676aec1e00c3a131a5d2 /FL
parent0af00dd0ac8986ca929997452ce932226dd0f808 (diff)
Create virtual void Fl_Graphics_Driver::draw(Fl_Shared_Image*,...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Graphics_Driver.H2
-rw-r--r--FL/Fl_Shared_Image.H3
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_;