summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-03-15 05:57:19 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-03-15 05:57:19 +0100
commit7f5ce4d7a9fc5497228ee6545f75f4724103163a (patch)
treed8992318c127608880aeccbc73424ea91a14c6f4 /src
parent2d833a54fd1147b0d5942c2798940038b7536a9a (diff)
Fix for issue #410
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H2
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx9
2 files changed, 11 insertions, 0 deletions
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_;
+}
+