aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;