[gimp/soc-2012-unified-transformation: 24/25] transformtool: how to draw in screen coords
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2012-unified-transformation: 24/25] transformtool: how to draw in screen coords
- Date: Tue, 10 Jul 2012 20:35:49 +0000 (UTC)
commit c52d5d062b17c695ce1a1408a372bece4c6beb77
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/gimpunifiedtransformationtool.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpunifiedtransformationtool.c b/app/tools/gimpunifiedtransformationtool.c
index f2b1460..8510675 100644
--- a/app/tools/gimpunifiedtransformationtool.c
+++ b/app/tools/gimpunifiedtransformationtool.c
@@ -468,6 +468,15 @@ gimp_unified_transformation_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]