mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 11:44:21 +00:00
Make underlining of fonts drawn at an angle follow the text.
This commit is contained in:
parent
605e22abb2
commit
2cf4ec3e2d
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue