diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-04-04 21:43:21 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-04-04 21:43:21 +0000 |
commit | 38033a58c322424e5536e5ab126101f90a9b32a2 (patch) | |
tree | 7a96350f542954c5a869903db9591f24b9827d27 | |
parent | 5b81559ea505a358beaf0de4d9f35f1c55cbae0b (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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |