mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
At the end of PATH_StrokePath, update dc->CurPosX|Y so that their
values are in logical co-ords.
This commit is contained in:
parent
2a00807f40
commit
ff6bda8960
1 changed files with 13 additions and 0 deletions
|
@ -1578,6 +1578,19 @@ static BOOL PATH_StrokePath(DC *dc, GdiPath *pPath)
|
|||
SetGraphicsMode(dc->hSelf, GM_ADVANCED);
|
||||
SetWorldTransform(dc->hSelf, &xform);
|
||||
SetGraphicsMode(dc->hSelf, graphicsMode);
|
||||
|
||||
/* If we've moved the current point then get its new position
|
||||
which will be in device (MM_TEXT) co-ords, convert it to
|
||||
logical co-ords and re-set it. This basically updates
|
||||
dc->CurPosX|Y so that their values are in the correct mapping
|
||||
mode.
|
||||
*/
|
||||
if(i > 0) {
|
||||
POINT pt;
|
||||
GetCurrentPositionEx(dc->hSelf, &pt);
|
||||
DPtoLP(dc->hSelf, &pt, 1);
|
||||
MoveToEx(dc->hSelf, pt.x, pt.y, NULL);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue