[gimp] app: enable double buffering when editing vectors



commit 8a029f3e4e5181d8ca92c5e2121da4818c2a2ee4
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 17 23:12:42 2010 +0200

    app: enable double buffering when editing vectors

 app/display/gimpdisplayshell-callbacks.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index bbfc916..27f40d0 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -45,6 +45,7 @@
 #include "tools/gimpmovetool.h"
 #include "tools/gimppainttool.h"
 #include "tools/gimptoolcontrol.h"
+#include "tools/gimpvectortool.h"
 #include "tools/tool_manager.h"
 #include "tools/tools-enums.h"
 
@@ -371,10 +372,12 @@ static gboolean
 gimp_display_shell_is_double_buffered (GimpDisplayShell *shell)
 {
   /*  always double-buffer if there are overlay children or a
-   *  transform preview, or they will flicker badly
+   *  transform preview, or they will flicker badly. Also double
+   *  buffer when we are editing paths.
    */
-  if (GIMP_OVERLAY_BOX (shell->canvas)->children ||
-      gimp_display_shell_get_show_transform (shell))
+  if (GIMP_OVERLAY_BOX (shell->canvas)->children    ||
+      gimp_display_shell_get_show_transform (shell) ||
+      GIMP_IS_VECTOR_TOOL (tool_manager_get_active (shell->display->gimp)))
     return TRUE;
 
   return FALSE;



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