summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2009-07-21 15:16:47 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2009-07-21 15:16:47 (GMT)
commitf14beef69420c8fc71bb24d135d17270ef5af0fd (patch)
tree67204f9a3309ed5c0d4811ef0603f6a17f23d638 /generic
parent90c0b929ea9c55d9561e04a5e3b1751e771386f3 (diff)
downloadtk-f14beef69420c8fc71bb24d135d17270ef5af0fd.zip
tk-f14beef69420c8fc71bb24d135d17270ef5af0fd.tar.gz
tk-f14beef69420c8fc71bb24d135d17270ef5af0fd.tar.bz2
Corrected drawing of rotated underlines. [Bug 2356057]
Diffstat (limited to 'generic')
-rw-r--r--generic/tkFont.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c
index ba8b0c3..cfb6d80 100644
--- a/generic/tkFont.c
+++ b/generic/tkFont.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkFont.c,v 1.55 2009/07/20 23:29:05 ferrieux Exp $
+ * RCS: @(#) $Id: tkFont.c,v 1.56 2009/07/21 15:16:47 dkf Exp $
*/
#include "tkInt.h"
@@ -2469,11 +2469,11 @@ TkUnderlineAngledTextLayout(
XDrawLines(display, drawable, gc, points, 2, CoordModeOrigin);
} else {
points[2].x = x + ROUND16(xx*cosA + dy*sinA + width*cosA
- - fontPtr->underlineHeight*sinA);
+ + fontPtr->underlineHeight*sinA);
points[2].y = y + ROUND16(dy*cosA - xx*sinA - width*sinA
+ fontPtr->underlineHeight*cosA);
points[3].x = x + ROUND16(xx*cosA + dy*sinA
- - fontPtr->underlineHeight*sinA);
+ + fontPtr->underlineHeight*sinA);
points[3].y = y + ROUND16(dy*cosA - xx*sinA
+ fontPtr->underlineHeight*cosA);
points[4].x = points[0].x;