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
b8d450f9
Commit
b8d450f9
authored
Oct 31, 2000
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 31, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow pens with styles greater than PS_INSIDEFRAME to be created with
CreatePenIndirect and ExtCreatePen.
parent
5f74d679
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
pen.c
objects/pen.c
+3
-4
No files found.
objects/pen.c
View file @
b8d450f9
...
...
@@ -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,11 +104,11 @@ 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_INSIDEFRAM
E
)
/* PS_USERSTYLE workaround */
if
((
penPtr
->
logpen
.
lopnStyle
&
PS_STYLE_MASK
)
==
PS_USERSTYL
E
)
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
;
...
...
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