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
5f74d679
Commit
5f74d679
authored
Oct 31, 2000
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 31, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use sizeof for maintainability.
parent
88801958
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
pen.c
graphics/x11drv/pen.c
+5
-6
No files found.
graphics/x11drv/pen.c
View file @
5f74d679
...
...
@@ -40,24 +40,23 @@ HPEN X11DRV_PEN_SelectObject( DC * dc, HPEN hpen, PENOBJ * pen )
{
case
PS_DASH
:
physDev
->
pen
.
dashes
=
(
char
*
)
PEN_dash
;
physDev
->
pen
.
dash_len
=
2
;
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_dash
)
/
sizeof
(
*
PEN_dash
)
;
break
;
case
PS_DOT
:
physDev
->
pen
.
dashes
=
(
char
*
)
PEN_dot
;
physDev
->
pen
.
dash_len
=
2
;
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_dot
)
/
sizeof
(
*
PEN_dot
)
;
break
;
case
PS_DASHDOT
:
physDev
->
pen
.
dashes
=
(
char
*
)
PEN_dashdot
;
physDev
->
pen
.
dash_len
=
4
;
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_dashdot
)
/
sizeof
(
*
PEN_dashdot
)
;
break
;
case
PS_DASHDOTDOT
:
physDev
->
pen
.
dashes
=
(
char
*
)
PEN_dashdotdot
;
physDev
->
pen
.
dash_len
=
6
;
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_dashdotdot
)
/
sizeof
(
*
PEN_dashdotdot
)
;
break
;
case
PS_ALTERNATE
:
/* FIXME: should be alternating _pixels_ that are set */
physDev
->
pen
.
dashes
=
(
char
*
)
PEN_alternate
;
physDev
->
pen
.
dash_len
=
2
;
physDev
->
pen
.
dash_len
=
sizeof
(
PEN_alternate
)
/
sizeof
(
*
PEN_alternate
)
;
break
;
case
PS_USERSTYLE
:
/* FIXME */
...
...
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