diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-11 19:45:48 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-11 19:45:48 +0200 |
| commit | d028f0b37d12636f1956ad59843d2dec96b12a91 (patch) | |
| tree | 924b4e6a3ea7b15e6e054d534e20aef65671e2d4 /FL/platform.H | |
| parent | 98d8a5da0c6449eb1e976d00368e6469dea4df1d (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 'FL/platform.H')
| -rw-r--r-- | FL/platform.H | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/FL/platform.H b/FL/platform.H index 75ec2f841..fbabca2fb 100644 --- a/FL/platform.H +++ b/FL/platform.H @@ -39,9 +39,6 @@ class Fl_Window; # include "mac.H" # elif defined(FLTK_USE_WAYLAND) # include "wayland.H" -# if !FLTK_USE_X11 - typedef struct wld_window *Window; -# endif # elif defined(FLTK_USE_X11) # include "x11.H" # endif // _WIN32 |
