Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f2ad9df4
Commit
f2ad9df4
authored
Oct 14, 2011
by
Daniel Santos
Committed by
Alexandre Julliard
Oct 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Add on-screen PS_USERSTYLE support to pens.
parent
89c2a4c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
pen.c
dlls/winex11.drv/pen.c
+7
-6
No files found.
dlls/winex11.drv/pen.c
View file @
f2ad9df4
...
...
@@ -42,11 +42,11 @@ HPEN X11DRV_SelectPen( PHYSDEV dev, HPEN hpen )
X11DRV_PDEVICE
*
physDev
=
get_x11drv_dev
(
dev
);
LOGPEN
logpen
;
int
i
;
EXTLOGPEN
*
elp
=
NULL
;
if
(
!
GetObjectW
(
hpen
,
sizeof
(
logpen
),
&
logpen
))
{
/* must be an extended pen */
EXTLOGPEN
*
elp
;
INT
size
=
GetObjectW
(
hpen
,
0
,
NULL
);
if
(
!
size
)
return
0
;
...
...
@@ -55,13 +55,10 @@ HPEN X11DRV_SelectPen( PHYSDEV dev, HPEN hpen )
elp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
GetObjectW
(
hpen
,
size
,
elp
);
/* FIXME: add support for user style pens */
logpen
.
lopnStyle
=
elp
->
elpPenStyle
;
logpen
.
lopnWidth
.
x
=
elp
->
elpWidth
;
logpen
.
lopnWidth
.
y
=
0
;
logpen
.
lopnColor
=
elp
->
elpColor
;
HeapFree
(
GetProcessHeap
(),
0
,
elp
);
}
else
physDev
->
pen
.
ext
=
0
;
...
...
@@ -109,8 +106,10 @@ HPEN X11DRV_SelectPen( PHYSDEV dev, HPEN hpen )
memcpy
(
physDev
->
pen
.
dashes
,
PEN_alternate
,
physDev
->
pen
.
dash_len
);
break
;
case
PS_USERSTYLE
:
FIXME
(
"PS_USERSTYLE is not supported
\n
"
);
/* fall through */
physDev
->
pen
.
dash_len
=
min
(
elp
->
elpNumEntries
,
MAX_DASHLEN
);
for
(
i
=
0
;
i
<
physDev
->
pen
.
dash_len
;
i
++
)
physDev
->
pen
.
dashes
[
i
]
=
min
(
elp
->
elpStyleEntry
[
i
],
255
);
break
;
default:
physDev
->
pen
.
dash_len
=
0
;
break
;
...
...
@@ -120,6 +119,8 @@ HPEN X11DRV_SelectPen( PHYSDEV dev, HPEN hpen )
for
(
i
=
0
;
i
<
physDev
->
pen
.
dash_len
;
i
++
)
physDev
->
pen
.
dashes
[
i
]
*=
(
physDev
->
pen
.
width
?
physDev
->
pen
.
width
:
1
);
HeapFree
(
GetProcessHeap
(),
0
,
elp
);
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