|
|
commit d018fdd791422eafc11cbf90ec52ea75f40cbf94
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Tue Jun 1 19:41:11 2021 +0200
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Sep 29 12:14:55 2021 +0200
Wayland platform: flush Cairo before committing the drawing buffer
src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx | 1 +
1 file changed, 1 insertion(+)
diff --git src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx
index d4070aa..60d80e6 100644
--- src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx
@@ -105,6 +105,7 @@ struct buffer *Fl_Wayland_Graphics_Driver::create_shm_buffer(int width, int heig
void Fl_Wayland_Graphics_Driver::buffer_commit(struct wld_window *window) {
+ cairo_surface_flush(window->buffer->cairo_surface_);
memcpy(window->buffer->data, window->buffer->draw_buffer, window->buffer->data_size);
wl_surface_attach(window->wl_surface, window->buffer->wl_buffer, 0, 0);
wl_surface_set_buffer_scale(window->wl_surface, window->scale);
[ Direct Link to Message ] | |
|
| |