From 2cf4ec3e2d86b86fa7978f3f14504bef566ac63f Mon Sep 17 00:00:00 2001 From: Troy Rollo Date: Thu, 27 May 2004 02:20:50 +0000 Subject: [PATCH] Make underlining of fonts drawn at an angle follow the text. --- dlls/x11drv/xrender.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/x11drv/xrender.c b/dlls/x11drv/xrender.c index fa10370f7a6..baf7b92c6e4 100644 --- a/dlls/x11drv/xrender.c +++ b/dlls/x11drv/xrender.c @@ -1296,8 +1296,10 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag XSetLineAttributes( gdi_display, physDev->gc, lineWidth, LineSolid, CapProjecting, JoinBevel ); XDrawLine( gdi_display, physDev->drawable, physDev->gc, - physDev->org.x + x, physDev->org.y + y - linePos, - physDev->org.x + x + width, physDev->org.y + y - linePos ); + physDev->org.x + x - linePos * sinEsc, + physDev->org.y + y - linePos * cosEsc, + physDev->org.x + x + width * cosEsc - linePos * sinEsc, + physDev->org.y + y - width * sinEsc - linePos * cosEsc ); } if (lf.lfStrikeOut) {