Alexandre Julliard : wineps: Fix a couple of typos in the path painting function.
Alexandre Julliard
julliard at winehq.org
Wed Nov 2 14:23:34 CDT 2011
Module: wine
Branch: master
Commit: 2cf3975dfca3c1fca918ca8c09890d38614ca274
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2cf3975dfca3c1fca918ca8c09890d38614ca274
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Nov 1 21:10:13 2011 +0100
wineps: Fix a couple of typos in the path painting function.
Thanks to Octavian Voicu.
---
dlls/wineps.drv/graphics.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wineps.drv/graphics.c b/dlls/wineps.drv/graphics.c
index 3459fe1..41f6e91 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 );
More information about the wine-cvs
mailing list