From: malc Date: Sat, 2 Mar 2013 16:08:32 +0000 (+0400) Subject: -3 lines X-Git-Tag: v15~20 X-Git-Url: https://repo.or.cz/w/llpp.git/commitdiff_plain/f83d2a850e5c927ae2f33dfe443a5bb66ca616c4 -3 lines --- diff --git a/link.c b/link.c index 90a8951..abcef7f 100644 --- a/link.c +++ b/link.c @@ -2074,14 +2074,11 @@ static void highlightlinks (struct page *page, int xoff, int yoff) w = p2.x - p1.x; h = p2.y - p1.y; - t = sqrtf (w*w + h*h); + t = sqrtf (w*w + h*h) * .25f; w = p3.x - p2.x; h = p3.y - p2.y; - s = sqrtf (w*w + h*h); - - t /= 4.0; - s /= 4.0; + s = sqrtf (w*w + h*h) * .25f; glTexCoord1i (0); glVertex2f (p1.x, p1.y);