[gimp] app: draw the line before the handles so it will look ok with cairo
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: draw the line before the handles so it will look ok with cairo
- Date: Thu, 23 Sep 2010 17:29:21 +0000 (UTC)
commit fb68e40214a8fcaa41f2b3793aefadbb2fec1edc
Author: Michael Natterer <mitch gimp org>
Date: Thu Sep 23 14:55:38 2010 +0200
app: draw the line before the handles so it will look ok with cairo
app/tools/gimppainttool.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/app/tools/gimppainttool.c b/app/tools/gimppainttool.c
index b67d479..6810194 100644
--- a/app/tools/gimppainttool.c
+++ b/app/tools/gimppainttool.c
@@ -719,6 +719,13 @@ gimp_paint_tool_draw (GimpDrawTool *draw_tool)
gimp_item_get_offset (GIMP_ITEM (drawable), &off_x, &off_y);
+ /* Draw the line between the start and end coords */
+ gimp_draw_tool_draw_line (draw_tool,
+ core->last_coords.x + off_x,
+ core->last_coords.y + off_y,
+ core->cur_coords.x + off_x,
+ core->cur_coords.y + off_y);
+
/* Draw start target */
gimp_draw_tool_draw_handle (draw_tool,
GIMP_HANDLE_CROSS,
@@ -736,13 +743,6 @@ gimp_paint_tool_draw (GimpDrawTool *draw_tool)
HANDLE_SIZE,
HANDLE_SIZE,
GTK_ANCHOR_CENTER);
-
- /* Draw the line between the start and end coords */
- gimp_draw_tool_draw_line (draw_tool,
- core->last_coords.x + off_x,
- core->last_coords.y + off_y,
- core->cur_coords.x + off_x,
- core->cur_coords.y + off_y);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]