gdi: Extended pens do not work correct with StrokePath.

This commit is contained in:
Tobias Loew 2006-02-02 13:21:10 +01:00 committed by Alexandre Julliard
parent d77baf358b
commit 58331121aa
1 changed files with 6 additions and 2 deletions

View File

@ -1678,8 +1678,12 @@ static BOOL PATH_StrokePath(DC *dc, GdiPath *pPath)
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);