mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 04:33:32 +00:00
- ExtCreatePen creates a PS_NULL style pen in the LOGPEN Format, use the NULL_PEN StockObject for that matter
- Fixes 24 gdi32 pen winetests svn path=/trunk/; revision=37661
This commit is contained in:
parent
d29825fe8f
commit
cab11c6e20
1 changed files with 19 additions and 11 deletions
|
@ -369,17 +369,25 @@ NtGdiExtCreatePen(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hPen = IntGdiExtCreatePen(dwPenStyle,
|
if (dwPenStyle != PS_NULL)
|
||||||
ulWidth,
|
{
|
||||||
ulBrushStyle,
|
hPen = IntGdiExtCreatePen(dwPenStyle,
|
||||||
ulColor,
|
ulWidth,
|
||||||
ulClientHatch,
|
ulBrushStyle,
|
||||||
ulHatch,
|
ulColor,
|
||||||
dwStyleCount,
|
ulClientHatch,
|
||||||
pSafeStyle,
|
ulHatch,
|
||||||
cjDIB,
|
dwStyleCount,
|
||||||
bOldStylePen,
|
pSafeStyle,
|
||||||
hBrush);
|
cjDIB,
|
||||||
|
bOldStylePen,
|
||||||
|
hBrush);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
hPen = NtGdiGetStockObject(NULL_PEN);
|
||||||
|
}
|
||||||
|
|
||||||
if (!hPen && pSafeStyle)
|
if (!hPen && pSafeStyle)
|
||||||
{
|
{
|
||||||
ExFreePoolWithTag(pSafeStyle, TAG_PENSTYLES);
|
ExFreePoolWithTag(pSafeStyle, TAG_PENSTYLES);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue