From 7f5ce4d7a9fc5497228ee6545f75f4724103163a Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 15 Mar 2022 05:57:19 +0100 Subject: Fix for issue #410 --- src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H | 2 ++ src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx | 9 +++++++++ 2 files changed, 11 insertions(+) (limited to 'src') diff --git a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H index 5458cc9a3..379db286f 100644 --- a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H +++ b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H @@ -89,6 +89,8 @@ public: static void cairo_init(struct fl_wld_buffer *buffer, int width, int height, int stride, cairo_format_t format); void set_spot(int font, int height, int x, int y, int w, int h, Fl_Window *win); void reset_spot(); + virtual void *gc(); + virtual void gc(void *gc); }; #endif // FL_WAYLAND_GRAPHICS_DRIVER_H diff --git a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx index 9a337dde8..d0ef19724 100644 --- a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx @@ -266,3 +266,12 @@ void Fl_Wayland_Graphics_Driver::copy_offscreen(int x, int y, int w, int h, Fl_O cairo_surface_destroy(surf); cairo_restore(cairo_); } + + +void Fl_Wayland_Graphics_Driver::gc(void *off) {} // equivalent is done by activate() + + +void *Fl_Wayland_Graphics_Driver::gc() { + return buffer_; +} + -- cgit v1.2.3