[gimp/soc-2012-unified-transformation: 25/39] transformtool: how to draw in screen coords



commit 5094c3ac3eac19cc31e47ecd797d9836c9ec6cb3
Author: Mikael Magnusson <mikachu src gnome org>
Date:   Wed Jun 13 02:47:43 2012 +0200

    transformtool: how to draw in screen coords

 app/tools/gimpunifiedtransformtool.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpunifiedtransformtool.c b/app/tools/gimpunifiedtransformtool.c
index 535310c..78e64a0 100644
--- a/app/tools/gimpunifiedtransformtool.c
+++ b/app/tools/gimpunifiedtransformtool.c
@@ -469,6 +469,15 @@ gimp_unified_transform_tool_draw (GimpDrawTool *draw_tool)
                              tr_tool->tcx, tr_tool->tcy,
                              d, d,
                              GIMP_HANDLE_ANCHOR_CENTER);
+  /* draw an item at 40,80 in screen coordinates */
+  //gint x, y;
+  //gimp_display_shell_untransform_xy (gimp_display_get_shell (tool->display),
+  //                                 40, 80, &x, &y, TRUE);
+  //gimp_draw_tool_add_handle (draw_tool,
+  //                           GIMP_HANDLE_SQUARE,
+  //                           x, y,
+  //                           5, 5,
+  //                           GIMP_HANDLE_ANCHOR_CENTER);
 
   gimp_draw_tool_pop_group (draw_tool);
 



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