Make underlining of fonts drawn at an angle follow the text.

This commit is contained in:
Troy Rollo 2004-05-27 02:20:50 +00:00 committed by Alexandre Julliard
parent 605e22abb2
commit 2cf4ec3e2d
1 changed files with 4 additions and 2 deletions

View File

@ -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) {