gdi: extended pens do not work correct with StrokePath

Tobias Loew tobi at die-loews.de
Thu Feb 2 04:30:33 CST 2006


Changelog:
    dlls/gdi/path.c

    Tobias Loew <tobi at die-loews.de>
    gdi: extended pens do not work correct with StrokePath
    ExtCreatePen is not successful if elpPenStyle does not contain PS_USERSTYLE

Tobias Loew


Index: dlls/gdi/path.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/path.c,v
retrieving revision 1.12
diff -u -p -r1.12 path.c
--- dlls/gdi/path.c	31 Jan 2006 12:08:20 -0000	1.12
+++ dlls/gdi/path.c	2 Feb 2006 10:18:21 -0000
@@ -1678,8 +1678,12 @@ static BOOL PATH_StrokePath(DC *dc, GdiP
 	lb.lbStyle = elp.elpBrushStyle;
 	lb.lbColor = elp.elpColor;
 	lb.lbHatch = elp.elpHatch;
-	hNewPen = ExtCreatePen(elp.elpPenStyle, elp.elpWidth, &lb,
-	                       elp.elpNumEntries, elp.elpStyleEntry);
+        if(elp.elpPenStyle & PS_USERSTYLE)
+	    hNewPen = ExtCreatePen(elp.elpPenStyle, elp.elpWidth, &lb,
+	                           elp.elpNumEntries, elp.elpStyleEntry);
+        else
+	    hNewPen = ExtCreatePen(elp.elpPenStyle, elp.elpWidth, &lb,
+	                           0, NULL);
     } else /* OBJ_PEN */ {
 	LOGPEN lp;
 	GetObjectW(hOldPen, sizeof(LOGPEN), &lp);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20060202/bb19416f/attachment.htm


More information about the wine-patches mailing list