Tobias Loew : gdi: Extended pens do not work correct with StrokePath.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Feb 2 07:09:16 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 58331121aa791f39ec19aea0d421f11e13654e96
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=58331121aa791f39ec19aea0d421f11e13654e96
Author: Tobias Loew <tobi at die-loews.de>
Date: Thu Feb 2 13:21:10 2006 +0100
gdi: Extended pens do not work correct with StrokePath.
---
dlls/gdi/path.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi/path.c b/dlls/gdi/path.c
index 6df155a..1e98fe5 100644
--- a/dlls/gdi/path.c
+++ b/dlls/gdi/path.c
@@ -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);
More information about the wine-cvs
mailing list