Alexandre Julliard : wineps: Convert path points to device coords since GetPath returns logical coords.

Alexandre Julliard julliard at winehq.org
Wed Feb 22 14:27:39 CST 2012


Module: wine
Branch: master
Commit: 061b8c409497b3ed586e756a4d67ebc7926131f4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=061b8c409497b3ed586e756a4d67ebc7926131f4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Feb 22 16:03:59 2012 +0100

wineps: Convert path points to device coords since GetPath returns logical coords.

---

 dlls/wineps.drv/graphics.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/wineps.drv/graphics.c b/dlls/wineps.drv/graphics.c
index 5459ce4..711ab43 100644
--- a/dlls/wineps.drv/graphics.c
+++ b/dlls/wineps.drv/graphics.c
@@ -521,6 +521,7 @@ static BOOL paint_path( PHYSDEV dev, BOOL stroke, BOOL fill )
     types = HeapAlloc( GetProcessHeap(), 0, size * sizeof(*types) );
     if (!points || !types) goto done;
     if (GetPath( dev->hdc, points, types, size ) == -1) goto done;
+    LPtoDP( dev->hdc, points, size );
 
     if (stroke) PSDRV_SetPen(dev);
     PSDRV_SetClip(dev);




More information about the wine-cvs mailing list