[gimp] app: properly round the bounding box in the move tool
- From: Simon Budig <simon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: properly round the bounding box in the move tool
- Date: Fri, 17 Sep 2010 20:00:33 +0000 (UTC)
commit 610b6a23e2b9f6a46d51ba0cb72469bf4d1f0251
Author: Simon Budig <simon budig de>
Date: Fri Sep 17 21:57:08 2010 +0200
app: properly round the bounding box in the move tool
app/tools/gimpeditselectiontool.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpeditselectiontool.c b/app/tools/gimpeditselectiontool.c
index cf5a59d..2e0324c 100644
--- a/app/tools/gimpeditselectiontool.c
+++ b/app/tools/gimpeditselectiontool.c
@@ -965,10 +965,15 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
g_list_free (linked);
}
+ x1 = floor (x1);
+ y1 = floor (y1);
+ x2 = ceil (x2);
+ y2 = ceil (y2);
+
gimp_draw_tool_draw_rectangle (draw_tool,
FALSE,
- ROUND (x1), ROUND (y1),
- ROUND (x2 - x1), ROUND (y2 - y1),
+ x1, y1,
+ x2 - x1, y2 - y1,
FALSE);
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]