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
4659870d
Commit
4659870d
authored
Nov 25, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Cast-qual warnings fix.
parent
c8e64830
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
pen.c
dlls/winex11.drv/pen.c
+10
-11
No files found.
dlls/winex11.drv/pen.c
View file @
4659870d
...
...
@@ -25,18 +25,17 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
x11drv
);
static
const
char
PEN_dash
[]
=
{
16
,
8
};
static
const
char
PEN_dot
[]
=
{
4
,
4
};
static
const
char
PEN_dashdot
[]
=
{
12
,
8
,
4
,
8
};
static
const
char
PEN_dashdotdot
[]
=
{
12
,
4
,
4
,
4
,
4
,
4
};
static
const
char
PEN_alternate
[]
=
{
1
,
1
};
/***********************************************************************
* SelectPen (X11DRV.@)
*/
HPEN
X11DRV_SelectPen
(
X11DRV_PDEVICE
*
physDev
,
HPEN
hpen
)
{
LOGPEN
logpen
;
static
char
PEN_dash
[]
=
{
16
,
8
};
static
char
PEN_dot
[]
=
{
4
,
4
};
static
char
PEN_dashdot
[]
=
{
12
,
8
,
4
,
8
};
static
char
PEN_dashdotdot
[]
=
{
12
,
4
,
4
,
4
,
4
,
4
};
static
char
PEN_alternate
[]
=
{
1
,
1
};
if
(
!
GetObjectW
(
hpen
,
sizeof
(
logpen
),
&
logpen
))
{
...
...
@@ -77,23 +76,23 @@ HPEN X11DRV_SelectPen( X11DRV_PDEVICE *physDev, HPEN hpen )
switch
(
logpen
.
lopnStyle
&
PS_STYLE_MASK
)
{
case
PS_DASH
:
physDev
->
pen
.
dashes
=
(
char
*
)
PEN_dash
;
physDev
->
pen
.
dashes
=
PEN_dash
;
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_dash
)
/
sizeof
(
*
PEN_dash
);
break
;
case
PS_DOT
:
physDev
->
pen
.
dashes
=
(
char
*
)
PEN_dot
;
physDev
->
pen
.
dashes
=
PEN_dot
;
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_dot
)
/
sizeof
(
*
PEN_dot
);
break
;
case
PS_DASHDOT
:
physDev
->
pen
.
dashes
=
(
char
*
)
PEN_dashdot
;
physDev
->
pen
.
dashes
=
PEN_dashdot
;
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_dashdot
)
/
sizeof
(
*
PEN_dashdot
);
break
;
case
PS_DASHDOTDOT
:
physDev
->
pen
.
dashes
=
(
char
*
)
PEN_dashdotdot
;
physDev
->
pen
.
dashes
=
PEN_dashdotdot
;
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_dashdotdot
)
/
sizeof
(
*
PEN_dashdotdot
);
break
;
case
PS_ALTERNATE
:
physDev
->
pen
.
dashes
=
(
char
*
)
PEN_alternate
;
physDev
->
pen
.
dashes
=
PEN_alternate
;
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_alternate
)
/
sizeof
(
*
PEN_alternate
);
break
;
case
PS_USERSTYLE
:
...
...
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