|
|
commit 2fc2c5b562c1d8ae94ff11cdf0587cc5ff288d72
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Mon Jun 13 10:41:24 2022 +0200
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Mon Jun 13 10:41:24 2022 +0200
Fix support of transparent windows by wayland platform.
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 f0b4fd6..a299480 100644
--- src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx
@@ -71,6 +71,7 @@ struct fl_wld_buffer *Fl_Wayland_Graphics_Driver::create_shm_buffer(int width, i
buffer->data_size = size;
buffer->width = width;
buffer->draw_buffer = new uchar[buffer->data_size];
+ memset(buffer->draw_buffer, 0, buffer->data_size); // necessary for transparent windows
buffer->draw_buffer_needs_commit = false;
//fprintf(stderr, "create_shm_buffer: %dx%d = %d\n", width, height, size);
cairo_init(buffer, width, height, stride, Fl_Cairo_Graphics_Driver::cairo_format);
[ Direct Link to Message ] | |
|
| |