From d028f0b37d12636f1956ad59843d2dec96b12a91 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 11 Sep 2022 19:45:48 +0200 Subject: 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. --- src/Fl_Device.cxx | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/Fl_Device.cxx') diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx index d5e1b27c4..e3ccca9d6 100644 --- a/src/Fl_Device.cxx +++ b/src/Fl_Device.cxx @@ -97,11 +97,6 @@ Fl_Surface_Device::~Fl_Surface_Device() if (surface_ == this) surface_ = NULL; } -/** Returns non-NULL if this surface is an Fl_Image_Surface object - \version 1.4.0 - */ -Fl_Image_Surface *Fl_Surface_Device::as_image_surface() { return NULL; } - /** A constructor that sets the graphics driver used by the display */ Fl_Display_Device::Fl_Display_Device(Fl_Graphics_Driver *graphics_driver) : Fl_Surface_Device(graphics_driver) { this->set_current(); -- cgit v1.2.3