[gimp/cage: 27/130] app: fix handle hovering detection, it was using the wrong radius
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/cage: 27/130] app: fix handle hovering detection, it was using the wrong radius
- Date: Thu, 30 Dec 2010 17:50:15 +0000 (UTC)
commit 7b2cd3e48a6b8f6502abf7e0f631f34ec9acb827
Author: Michael Natterer <mitch gimp org>
Date: Sat Nov 6 00:05:35 2010 +0100
app: fix handle hovering detection, it was using the wrong radius
app/tools/gimpcagetool.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index d831afb..fd97acb 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -614,7 +614,7 @@ gimp_cage_tool_is_on_handle (GimpCageConfig *gcc,
x, y,
vert_x, vert_y);
- if (dist <= (handle_size * handle_size))
+ if (dist <= SQR (handle_size / 2))
return i;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]