From 38033a58c322424e5536e5ab126101f90a9b32a2 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 4 Apr 2011 21:43:21 +0000 Subject: adjusted click area to match the auto active highlighting of the Tk text widget svn path=/trunk/externals/pddp/; revision=15055 --- helplink.c | 5 ++--- 1 file 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; -- cgit v1.2.1