[gimp/gtk3-port: 63/228] app: fix canvas double buffering using cairo_push, pop_group()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 63/228] app: fix canvas double buffering using cairo_push, pop_group()
- Date: Sun, 6 Jan 2013 14:50:52 +0000 (UTC)
commit f83a1c56724177050e1e8ac7e349874a2cfed9bc
Author: Michael Natterer <mitch gimp org>
Date: Wed Oct 20 14:06:30 2010 +0200
app: fix canvas double buffering using cairo_push,pop_group()
app/display/gimpdisplayshell-callbacks.c | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index c9a8cf1..d873161 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -239,15 +239,18 @@ gimp_display_shell_canvas_draw (GtkWidget *widget,
{
if (gimp_display_get_image (shell->display))
{
-#if 0
if (gimp_display_shell_is_double_buffered (shell))
- gdk_window_begin_paint_region (eevent->window, eevent->region);
-#endif
- }
+ {
+ cairo_push_group (cr);
+ }
- if (gimp_display_get_image (shell->display))
- {
gimp_display_shell_canvas_draw_image (shell, cr);
+
+ if (gimp_display_shell_is_double_buffered (shell))
+ {
+ cairo_pop_group_to_source (cr);
+ cairo_paint (cr);
+ }
}
else
{
@@ -272,10 +275,6 @@ gimp_display_shell_canvas_draw_after (GtkWidget *widget,
{
if (gimp_display_get_image (shell->display))
{
-#if 0
- if (gimp_display_shell_is_double_buffered (shell))
- gdk_window_end_paint (eevent->window);
-#endif
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]