[gimp/metadata-browser] transformtool: how to draw in screen coords



commit c382841ffc20b6a4057535c7eed011feba7149ff
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 2ef9950..fc7565d 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]