summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Graphics_Driver.H2
-rw-r--r--FL/Fl_Image_Surface.H3
2 files changed, 4 insertions, 1 deletions
diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H
index c8153baf3..79bbfcefc 100644
--- a/FL/Fl_Graphics_Driver.H
+++ b/FL/Fl_Graphics_Driver.H
@@ -33,6 +33,7 @@
class Fl_Graphics_Driver;
class Fl_Font_Descriptor;
+class Fl_Image_Surface;
/** \brief Points to the driver that currently receives all graphics requests */
FL_EXPORT extern Fl_Graphics_Driver *fl_graphics_driver;
@@ -249,6 +250,7 @@ protected:
pwidth = &(rgb->cache_w_);
pheight = &(rgb->cache_h_);
}
+ static Fl_Offscreen get_offscreen_and_delete_image_surface(Fl_Image_Surface*);
/** For internal library use only */
static void draw_empty(Fl_Image* img, int X, int Y) {img->draw_empty(X, Y);}
diff --git a/FL/Fl_Image_Surface.H b/FL/Fl_Image_Surface.H
index ac8f2d24d..fe8d4c2ad 100644
--- a/FL/Fl_Image_Surface.H
+++ b/FL/Fl_Image_Surface.H
@@ -69,8 +69,10 @@ class FL_EXPORT Fl_Image_Surface : public Fl_Widget_Surface {
friend FL_EXPORT void fl_begin_offscreen(Fl_Offscreen ctx);
friend FL_EXPORT void fl_end_offscreen(void);
friend FL_EXPORT void fl_delete_offscreen(Fl_Offscreen ctx);
+ friend class Fl_Graphics_Driver;
private:
class Fl_Image_Surface_Driver *platform_surface;
+ Fl_Offscreen get_offscreen_before_delete_();
protected:
void translate(int x, int y);
void untranslate();
@@ -83,7 +85,6 @@ public:
void origin(int *x, int *y);
void origin(int x, int y);
int printable_rect(int *w, int *h);
- Fl_Offscreen get_offscreen_before_delete();
Fl_Offscreen offscreen();
};