Bug 650426 - Missing call to cairo_surface_flush

app: before drawing directly on the surface.
This commit is contained in:
Massimo Valentini 2011-05-18 08:41:10 +02:00
parent 3e51484b18
commit 3efa2062c5
1 changed files with 5 additions and 0 deletions

View File

@ -366,6 +366,11 @@ gimp_display_shell_render_info_init (RenderInfo *info,
info->w = w;
info->h = h;
/* This function must be called before switching from drawing
* on the surface with cairo to drawing on it directly
*/
cairo_surface_flush (dest);
info->dest = cairo_image_surface_get_data (dest);
info->dest_bpl = cairo_image_surface_get_stride (dest);