Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
50e96dc2
Commit
50e96dc2
authored
Jun 05, 1999
by
Joshua Thielen
Committed by
Alexandre Julliard
Jun 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow pens with styles greater than PS_INSIDEFRAME to be created with
ExtCreatePen.
parent
713462df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
pen.c
objects/pen.c
+18
-6
No files found.
objects/pen.c
View file @
50e96dc2
...
...
@@ -97,7 +97,8 @@ HPEN WINAPI ExtCreatePen( DWORD style, DWORD width,
const
LOGBRUSH
*
brush
,
DWORD
style_count
,
const
DWORD
*
style_bits
)
{
LOGPEN
logpen
;
PENOBJ
*
penPtr
;
HPEN
hpen
;
if
((
style
&
PS_STYLE_MASK
)
==
PS_USERSTYLE
)
FIXME
(
"PS_USERSTYLE not handled
\n
"
);
...
...
@@ -105,11 +106,22 @@ HPEN WINAPI ExtCreatePen( DWORD style, DWORD width,
if
(
brush
->
lbHatch
)
FIXME
(
"Hatches not implemented
\n
"
);
logpen
.
lopnStyle
=
style
&
~
PS_TYPE_MASK
;
logpen
.
lopnWidth
.
x
=
(
style
&
PS_GEOMETRIC
)
?
width
:
1
;
logpen
.
lopnWidth
.
y
=
0
;
logpen
.
lopnColor
=
brush
->
lbColor
;
return
CreatePenIndirect
(
&
logpen
);
hpen
=
GDI_AllocObject
(
sizeof
(
PENOBJ
),
PEN_MAGIC
);
if
(
!
hpen
)
return
0
;
penPtr
=
(
PENOBJ
*
)
GDI_HEAP_LOCK
(
hpen
);
penPtr
->
logpen
.
lopnStyle
=
style
&
~
PS_TYPE_MASK
;
/* PS_USERSTYLE and PS_ALTERNATE workaround */
if
((
penPtr
->
logpen
.
lopnStyle
&
PS_STYLE_MASK
)
>
PS_INSIDEFRAME
)
penPtr
->
logpen
.
lopnStyle
=
(
penPtr
->
logpen
.
lopnStyle
&
~
PS_STYLE_MASK
)
|
PS_SOLID
;
penPtr
->
logpen
.
lopnWidth
.
x
=
(
style
&
PS_GEOMETRIC
)
?
width
:
1
;
penPtr
->
logpen
.
lopnWidth
.
y
=
0
;
penPtr
->
logpen
.
lopnColor
=
brush
->
lbColor
;
GDI_HEAP_UNLOCK
(
hpen
);
return
hpen
;
}
/***********************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment