Fix for issue #410

This commit is contained in:
ManoloFLTK 2022-03-15 05:57:19 +01:00
parent 2d833a54fd
commit 7f5ce4d7a9
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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_;
}