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:
@ -477,6 +477,9 @@ gdk_cairo_region_create_from_surface (cairo_surface_t *surface)
|
|||||||
else
|
else
|
||||||
image = cairo_surface_reference (surface);
|
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);
|
data = cairo_image_surface_get_data (image);
|
||||||
stride = cairo_image_surface_get_stride (image);
|
stride = cairo_image_surface_get_stride (image);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user