aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-04-04 21:43:21 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-04-04 21:43:21 +0000
commit38033a58c322424e5536e5ab126101f90a9b32a2 (patch)
tree7a96350f542954c5a869903db9591f24b9827d27
parent5b81559ea505a358beaf0de4d9f35f1c55cbae0b (diff)
adjusted click area to match the auto active highlighting of the Tk text widget
svn path=/trunk/externals/pddp/; revision=15055
-rw-r--r--helplink.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/helplink.c b/helplink.c
index 46b2d93..51f3db3 100644
--- a/helplink.c
+++ b/helplink.c
@@ -51,10 +51,9 @@ static void helplink_getrect(t_gobj *z, t_glist *glist,
}
else width = height = 10;
x1 = text_xpix((t_text *)x, glist);
- y1 = text_ypix((t_text *)x, glist);
+ y1 = text_ypix((t_text *)x, glist) + 1;
x2 = x1 + width;
- y2 = y1 + height;
- y1 += 1;
+ y2 = y1 + height + 1;
*xp1 = x1;
*yp1 = y1;
*xp2 = x2;