diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-08-09 10:31:36 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-08-09 10:31:36 +0200 |
| commit | 1943fe54c8fdf759a3f4da88ea8a8fb5f6f5f7cb (patch) | |
| tree | 698368755555882244b7eaab9fcbb931e7959fda /FL | |
| parent | 06e8cf98a6a08c202333bff893be55741961bfd3 (diff) | |
Wayland: fix fl_read_image() from offscreen buffer
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Image_Surface.H | 3 |
1 files changed, 3 insertions, 0 deletions
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_; } }; /** |
