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
84f22492
Commit
84f22492
authored
Aug 10, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhlp32: Avoid an ARRAY_SIZE-like macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
038d9e8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
winhelp.c
programs/winhlp32/winhelp.c
+3
-4
No files found.
programs/winhlp32/winhelp.c
View file @
84f22492
...
...
@@ -66,19 +66,18 @@ static void WINHELP_InitFonts(HWND hWnd)
{
-
12
,
0
,
0
,
0
,
700
,
0
,
0
,
0
,
DEFAULT_CHARSET
,
0
,
0
,
0
,
32
,
{
'H'
,
'e'
,
'l'
,
'v'
,
0
}},
{
-
10
,
0
,
0
,
0
,
700
,
0
,
0
,
0
,
DEFAULT_CHARSET
,
0
,
0
,
0
,
32
,
{
'H'
,
'e'
,
'l'
,
'v'
,
0
}},
{
-
8
,
0
,
0
,
0
,
400
,
0
,
0
,
0
,
DEFAULT_CHARSET
,
0
,
0
,
0
,
32
,
{
'H'
,
'e'
,
'l'
,
'v'
,
0
}}};
#define FONTS_LEN (sizeof(logfontlist)/sizeof(*logfontlist))
static
HFONT
fonts
[
FONTS_LEN
];
static
HFONT
fonts
[
ARRAY_SIZE
(
logfontlist
)
];
static
BOOL
init
=
FALSE
;
win
->
fonts_len
=
FONTS_LEN
;
win
->
fonts_len
=
ARRAY_SIZE
(
logfontlist
)
;
win
->
fonts
=
fonts
;
if
(
!
init
)
{
UINT
i
;
for
(
i
=
0
;
i
<
FONTS_LEN
;
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
logfontlist
)
;
i
++
)
{
fonts
[
i
]
=
CreateFontIndirectW
(
&
logfontlist
[
i
]);
}
...
...
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