[gimp] app: implement circle handles



commit f719cf1ea2963dcb770116c34b925dee0096b898
Author: Michael Natterer <mitch gimp org>
Date:   Wed Sep 22 23:58:42 2010 +0200

    app: implement circle handles

 app/display/gimpcanvashandle.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpcanvashandle.c b/app/display/gimpcanvashandle.c
index 9c63df7..1177e70 100644
--- a/app/display/gimpcanvashandle.c
+++ b/app/display/gimpcanvashandle.c
@@ -330,9 +330,15 @@ gimp_canvas_handle_draw (GimpCanvasItem   *item,
       break;
 
     case GIMP_HANDLE_CIRCLE:
+      cairo_arc (cr, x, y, private->width / 2, 0, 2 * G_PI);
+
+      _gimp_canvas_item_stroke (item, shell, cr);
       break;
 
     case GIMP_HANDLE_FILLED_CIRCLE:
+      cairo_arc (cr, x, y, (gdouble) private->width / 2.0, 0, 2 * G_PI);
+
+      _gimp_canvas_item_fill (item, shell, cr);
       break;
 
     case GIMP_HANDLE_CROSS:



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