[gimp] app: use gimp_draw_tool_add_arc() for the GimpPaintTool brush circle



commit 1397b9aae787631d1797d7cfde5239b3e53c2bce
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 20 21:42:18 2014 +0200

    app: use gimp_draw_tool_add_arc() for the GimpPaintTool brush circle
    
    because add_handle() doesn't scale with the image.

 app/tools/gimppainttool.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimppainttool.c b/app/tools/gimppainttool.c
index ab8deee..23759dc 100644
--- a/app/tools/gimppainttool.c
+++ b/app/tools/gimppainttool.c
@@ -797,11 +797,12 @@ gimp_paint_tool_draw (GimpDrawTool *draw_tool)
         {
           gint size = MAX (3, paint_tool->circle_radius * 2);
 
-          gimp_draw_tool_add_handle (draw_tool,
-                                     GIMP_HANDLE_CIRCLE,
-                                     cur_x, cur_y,
-                                     size, size,
-                                     GIMP_HANDLE_ANCHOR_CENTER);
+          gimp_draw_tool_add_arc (draw_tool,
+                                  FALSE,
+                                  cur_x - (size / 2.0),
+                                  cur_y - (size / 2.0),
+                                  size, size,
+                                  0.0, 2.0 * G_PI);
         }
       else if (! paint_tool->show_cursor)
         {


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