gdi32: Take the transform rotation into account to compute pen width.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2016-06-16 14:19:08 +09:00
parent 04e7215faf
commit 7cfcd23878
1 changed files with 1 additions and 1 deletions

View File

@ -1734,7 +1734,7 @@ static inline int get_pen_device_width( dibdrv_physdev *pdev, int width )
pts[0].x = pts[0].y = pts[1].y = 0;
pts[1].x = width;
LPtoDP( pdev->dev.hdc, pts, 2 );
width = abs( pts[1].x - pts[0].x );
width = floor( hypot( pts[1].x - pts[0].x, pts[1].y - pts[0].y ));
return max( width, 1 );
}