app: add comment about cairo_t and double buffering

This commit is contained in:
Michael Natterer 2010-08-28 11:44:11 +02:00
parent e582cdd23d
commit c0e475e7e2
1 changed files with 3 additions and 0 deletions

View File

@ -404,6 +404,9 @@ gimp_display_shell_canvas_expose (GtkWidget *widget,
gdk_window_begin_paint_region (eevent->window, eevent->region);
}
/* create the cairo_t after enabling double buffering, or we
* will get the wrong window destination surface
*/
cr = gdk_cairo_create (gtk_widget_get_window (shell->canvas));
gdk_cairo_region (cr, eevent->region);
cairo_clip (cr);