From 2cf3975dfca3c1fca918ca8c09890d38614ca274 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 1 Nov 2011 21:10:13 +0100 Subject: [PATCH] wineps: Fix a couple of typos in the path painting function. Thanks to Octavian Voicu. --- dlls/wineps.drv/graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wineps.drv/graphics.c b/dlls/wineps.drv/graphics.c index 3459fe13098..41f6e91e076 100644 --- a/dlls/wineps.drv/graphics.c +++ b/dlls/wineps.drv/graphics.c @@ -540,11 +540,11 @@ static BOOL paint_path( PHYSDEV dev, BOOL stroke, BOOL fill ) if (!points || !types) goto done; if (GetPath( dev->hdc, points, types, size ) == -1) goto done; - if (fill) PSDRV_SetPen(dev); + if (stroke) PSDRV_SetPen(dev); PSDRV_SetClip(dev); for (i = 0; i < size; i++) { - switch (types[i] & ~PT_CLOSEFIGURE) + switch (types[i]) { case PT_MOVETO: PSDRV_WriteMoveTo( dev, points[i].x, points[i].y );