mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
gdkcairo: Add a missing flush
Noticed by ickle on IRC. We need to flush here to make sure that the image data we fetch is up to date.
This commit is contained in:
parent
6243c7122c
commit
0acad84366
@ -477,6 +477,9 @@ gdk_cairo_region_create_from_surface (cairo_surface_t *surface)
|
||||
else
|
||||
image = cairo_surface_reference (surface);
|
||||
|
||||
/* Flush the surface to make sure that the rendering is up to date. */
|
||||
cairo_surface_flush (image);
|
||||
|
||||
data = cairo_image_surface_get_data (image);
|
||||
stride = cairo_image_surface_get_stride (image);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user