diff options
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H | 2 | ||||
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx | 9 |
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_; +} + |
