Wayland platform: more accurate initial state of window buffer.

This commit is contained in:
ManoloFLTK 2022-07-02 16:44:17 +02:00
parent c7493496c9
commit 16ecd6b821
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +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];
buffer->draw_buffer_needs_commit = false;
buffer->draw_buffer_needs_commit = true;
//fprintf(stderr, "create_shm_buffer: %dx%d = %d\n", width, height, size);
cairo_init(buffer, width, height, stride, Fl_Cairo_Graphics_Driver::cairo_format);
return buffer;