[gimp] app: suppose arc slices
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: suppose arc slices
- Date: Thu, 23 Sep 2010 23:33:41 +0000 (UTC)
commit 1c550d462339902070890b2395446a91a022f00e
Author: Michael Natterer <mitch gimp org>
Date: Fri Sep 24 01:32:57 2010 +0200
app: suppose arc slices
app/tools/gimpdrawtool.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c
index 8123049..a1609eb 100644
--- a/app/tools/gimpdrawtool.c
+++ b/app/tools/gimpdrawtool.c
@@ -782,6 +782,26 @@ gimp_draw_tool_draw_arc_by_anchor (GimpDrawTool *draw_tool,
g_return_if_fail (GIMP_IS_DRAW_TOOL (draw_tool));
+ if (draw_tool->use_cairo)
+ {
+ GimpCanvasItem *item;
+ gdouble a1, a2;
+
+ item = gimp_canvas_handle_new (filled ?
+ GIMP_HANDLE_FILLED_CIRCLE :
+ GIMP_HANDLE_CIRCLE,
+ anchor, x, y, width, height);
+
+ a1 = (gdouble) angle1 / 64.0 / 180.0 * G_PI;
+ a2 = (gdouble) angle2 / 64.0 / 180.0 * G_PI;
+
+ gimp_canvas_handle_set_angles (GIMP_CANVAS_HANDLE (item), a1, a2);
+
+ draw_tool->items = g_list_append (draw_tool->items, item);
+
+ return;
+ }
+
shell = gimp_display_get_shell (draw_tool->display);
gimp_display_shell_transform_xy_f (shell,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]