diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-06-13 10:41:24 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-06-13 10:41:24 +0200 |
| commit | 2fc2c5b562c1d8ae94ff11cdf0587cc5ff288d72 (patch) | |
| tree | 88cfc5c80bcb5b0264dd571b4a29507237701065 /src/drivers | |
| parent | 1b1e8a4d4682dd802c66884db05f2ebdcaf82218 (diff) | |
Fix support of transparent windows by wayland platform.
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx index f0b4fd6f7..a299480ed 100644 --- a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx +++ b/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); |
