From 1943fe54c8fdf759a3f4da88ea8a8fb5f6f5f7cb Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 9 Aug 2023 10:31:36 +0200 Subject: Wayland: fix fl_read_image() from offscreen buffer --- FL/Fl_Image_Surface.H | 3 +++ 1 file changed, 3 insertions(+) (limited to 'FL/Fl_Image_Surface.H') diff --git a/FL/Fl_Image_Surface.H b/FL/Fl_Image_Surface.H index fcd9db430..da2f5e761 100644 --- a/FL/Fl_Image_Surface.H +++ b/FL/Fl_Image_Surface.H @@ -117,6 +117,9 @@ protected: of class Fl_Image_Surface_Driver for the plaform. */ static Fl_Image_Surface_Driver *newImageSurfaceDriver(int w, int h, int high_res, Fl_Offscreen off); +public: + /** Returns pointer to the associated Fl_Image_Surface object */ + Fl_Image_Surface *image_surface() { return image_surface_; } }; /** -- cgit v1.2.3