mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Allow pens with styles greater than PS_INSIDEFRAME to be created with
CreatePenIndirect and ExtCreatePen.
This commit is contained in:
parent
5f74d679ab
commit
b8d450f99a
1 changed files with 3 additions and 4 deletions
|
@ -74,7 +74,6 @@ HPEN WINAPI CreatePenIndirect( const LOGPEN * pen )
|
|||
PENOBJ * penPtr;
|
||||
HPEN hpen;
|
||||
|
||||
if (pen->lopnStyle > PS_INSIDEFRAME) return 0;
|
||||
if (!(penPtr = GDI_AllocObject( sizeof(PENOBJ), PEN_MAGIC, &hpen ))) return 0;
|
||||
penPtr->logpen.lopnStyle = pen->lopnStyle;
|
||||
penPtr->logpen.lopnWidth = pen->lopnWidth;
|
||||
|
@ -105,8 +104,8 @@ HPEN WINAPI ExtCreatePen( DWORD style, DWORD width,
|
|||
if (!(penPtr = GDI_AllocObject( sizeof(PENOBJ), PEN_MAGIC, &hpen ))) return 0;
|
||||
penPtr->logpen.lopnStyle = style & ~PS_TYPE_MASK;
|
||||
|
||||
/* PS_USERSTYLE and PS_ALTERNATE workaround */
|
||||
if((penPtr->logpen.lopnStyle & PS_STYLE_MASK) > PS_INSIDEFRAME)
|
||||
/* PS_USERSTYLE workaround */
|
||||
if((penPtr->logpen.lopnStyle & PS_STYLE_MASK) == PS_USERSTYLE)
|
||||
penPtr->logpen.lopnStyle =
|
||||
(penPtr->logpen.lopnStyle & ~PS_STYLE_MASK) | PS_SOLID;
|
||||
|
||||
|
|
Loading…
Reference in a new issue