Module: wine Branch: master Commit: 7cfcd2387861cf1570fc3099a633a576a6ca84ef URL: http://source.winehq.org/git/wine.git/?a=commit;h=7cfcd2387861cf1570fc3099a6...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jun 16 14:19:08 2016 +0900
gdi32: Take the transform rotation into account to compute pen width.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/gdi32/dibdrv/objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/gdi32/dibdrv/objects.c b/dlls/gdi32/dibdrv/objects.c index f954def..a14c062 100644 --- a/dlls/gdi32/dibdrv/objects.c +++ b/dlls/gdi32/dibdrv/objects.c @@ -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 ); }