summaryrefslogtreecommitdiff
path: root/src/Fl_Image_Surface.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-11 19:45:48 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-11 19:45:48 +0200
commitd028f0b37d12636f1956ad59843d2dec96b12a91 (patch)
tree924b4e6a3ea7b15e6e054d534e20aef65671e2d4 /src/Fl_Image_Surface.cxx
parent98d8a5da0c6449eb1e976d00368e6469dea4df1d (diff)
Fix fl_read_image() under hybrid Wayland/X11 platform.
Function fl_read_image() obliges to keep a minimal use of global variable fl_window also under the Wayland platform, even if its type (Window) makes little sense for the hybrid library because it has its X11 value (given by X11/X.h) which is not meaningful for the Wayland leg of the hybrid platform. Virtual member function Fl_Surface_Device::as_image_surface() becomes useless.
Diffstat (limited to 'src/Fl_Image_Surface.cxx')
-rw-r--r--src/Fl_Image_Surface.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Fl_Image_Surface.cxx b/src/Fl_Image_Surface.cxx
index 1a5f5ec31..d1a19c6ff 100644
--- a/src/Fl_Image_Surface.cxx
+++ b/src/Fl_Image_Surface.cxx
@@ -90,9 +90,6 @@ int Fl_Image_Surface_Driver::printable_rect(int *w, int *h) {
return 0;
}
-Fl_Image_Surface *Fl_Image_Surface_Driver::as_image_surface() {
- return image_surface_;
-}
/**
\}
\endcond
@@ -155,11 +152,6 @@ void Fl_Image_Surface::rescale() {
}
-Fl_Image_Surface *Fl_Image_Surface::as_image_surface() {
- return this;
-}
-
-
// implementation of the fl_XXX_offscreen() functions
static Fl_Image_Surface **offscreen_api_surface = NULL;