Wayland platform: more accurate initial state of window buffer.
This commit is contained in:
parent
c7493496c9
commit
16ecd6b821
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user