Alexandre Julliard : wineps: PaintRgn should leave the path empty on exit.

Alexandre Julliard julliard at winehq.org
Mon Oct 31 12:49:03 CDT 2011


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sun Oct 30 08:47:36 2011 +0100

wineps: PaintRgn should leave the path empty on exit.

---

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

diff --git a/dlls/wineps.drv/graphics.c b/dlls/wineps.drv/graphics.c
index ac3e82e..ce7013e 100644
--- a/dlls/wineps.drv/graphics.c
+++ b/dlls/wineps.drv/graphics.c
@@ -380,7 +380,6 @@ BOOL PSDRV_PolyPolygon( PHYSDEV dev, const POINT* pts, const INT* counts, UINT p
     PSDRV_WriteSpool(dev, "%PolyPolygon\n",13);
     PSDRV_SetPen(dev);
     PSDRV_SetClip(dev);
-    PSDRV_WriteNewPath(dev);
 
     for(polygon = 0; polygon < polygons; polygon++) {
         PSDRV_WriteMoveTo(dev, pt->x, pt->y);
@@ -461,11 +460,11 @@ BOOL PSDRV_PaintRgn( PHYSDEV dev, HRGN hrgn )
     LPtoDP(dev->hdc, (POINT*)rgndata->Buffer, rgndata->rdh.nCount * 2);
 
     PSDRV_SetClip(dev);
-    PSDRV_WriteNewPath(dev);
     for(i = 0, pRect = (RECT*)rgndata->Buffer; i < rgndata->rdh.nCount; i++, pRect++)
         PSDRV_WriteRectangle(dev, pRect->left, pRect->top, pRect->right - pRect->left, pRect->bottom - pRect->top);
 
     PSDRV_Brush(dev, 0);
+    PSDRV_WriteNewPath(dev);
     PSDRV_ResetClip(dev);
 
  end:




More information about the wine-cvs mailing list