[gimp] app: draw the grid under the bounding box



commit 398742b3ac1e4c644056e0360262bacdd2ef26c9
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 24 13:13:33 2010 +0200

    app: draw the grid under the bounding box

 app/tools/gimptransformtool.c |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)
---
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index 4cd3315..3879e38 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -786,20 +786,6 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
 
   if (tr_tool->use_grid)
     {
-      /*  draw the bounding box  */
-      gimp_draw_tool_draw_line (draw_tool,
-                                tr_tool->tx1, tr_tool->ty1,
-                                tr_tool->tx2, tr_tool->ty2);
-      gimp_draw_tool_draw_line (draw_tool,
-                                tr_tool->tx2, tr_tool->ty2,
-                                tr_tool->tx4, tr_tool->ty4);
-      gimp_draw_tool_draw_line (draw_tool,
-                                tr_tool->tx3, tr_tool->ty3,
-                                tr_tool->tx4, tr_tool->ty4);
-      gimp_draw_tool_draw_line (draw_tool,
-                                tr_tool->tx3, tr_tool->ty3,
-                                tr_tool->tx1, tr_tool->ty1);
-
       /* We test if the transformed polygon is convex.
        * if z1 and z2 have the same sign as well as z3 and z4
        * the polygon is convex.
@@ -832,6 +818,21 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
                                         tr_tool->tgrid_coords[gci + 3]);
             }
         }
+
+      /*  draw the bounding box  */
+      gimp_draw_tool_draw_line (draw_tool,
+                                tr_tool->tx1, tr_tool->ty1,
+                                tr_tool->tx2, tr_tool->ty2);
+      gimp_draw_tool_draw_line (draw_tool,
+                                tr_tool->tx2, tr_tool->ty2,
+                                tr_tool->tx4, tr_tool->ty4);
+      gimp_draw_tool_draw_line (draw_tool,
+                                tr_tool->tx3, tr_tool->ty3,
+                                tr_tool->tx4, tr_tool->ty4);
+      gimp_draw_tool_draw_line (draw_tool,
+                                tr_tool->tx3, tr_tool->ty3,
+                                tr_tool->tx1, tr_tool->ty1);
+
     }
 
   gimp_transform_tool_handles_recalc (tr_tool, tool->display);



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