[gimp] app: draw the active tool's stuff in the display expose handler



commit 1ea16c07703001d513f363cbbd7420a31d0e8b03
Author: Michael Natterer <mitch gimp org>
Date:   Wed Sep 22 22:24:22 2010 +0200

    app: draw the active tool's stuff in the display expose handler

 app/display/gimpdisplayshell-callbacks.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index 27f40d0..644a6d2 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -2329,6 +2329,18 @@ gimp_display_shell_canvas_expose_image (GimpDisplayShell *shell,
   gimp_display_shell_draw_sample_points (shell, cr);
   cairo_restore (cr);
 
+  /* draw tool items */
+  {
+    GimpTool *tool = tool_manager_get_active (shell->display->gimp);
+
+    if (GIMP_IS_DRAW_TOOL (tool))
+      {
+        cairo_save (cr);
+        gimp_draw_tool_draw_items (GIMP_DRAW_TOOL (tool), cr);
+        cairo_restore (cr);
+      }
+  }
+
   /* and the cursor (if we have a software cursor) */
   cairo_save (cr);
   gimp_display_shell_draw_cursor (shell, cr);



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