[gimp] Bug 650426 - Missing call to cairo_surface_flush



commit 3efa2062c517e3365efc1f1f7a22a0016a85f35c
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Wed May 18 08:41:10 2011 +0200

    Bug 650426 - Missing call to cairo_surface_flush
    
    app: before drawing directly on the surface.

 app/display/gimpdisplayshell-render.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-render.c b/app/display/gimpdisplayshell-render.c
index 6d2e987..0c07cf1 100644
--- a/app/display/gimpdisplayshell-render.c
+++ b/app/display/gimpdisplayshell-render.c
@@ -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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]