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
5200dc9b
Commit
5200dc9b
authored
Apr 10, 2016
by
Jean-Christophe Cardot
Committed by
Alexandre Julliard
Apr 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhlp32: Prepare winhlp32 for more font types.
Signed-off-by:
Jean-Christophe Cardot
<
wine@cardot.net
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d55cb801
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
hlpfile.c
programs/winhlp32/hlpfile.c
+20
-0
hlpfile.h
programs/winhlp32/hlpfile.h
+3
-0
No files found.
programs/winhlp32/hlpfile.c
View file @
5200dc9b
...
...
@@ -1865,6 +1865,26 @@ static BOOL HLPFILE_ReadFont(HLPFILE* hlpfile)
hlpfile
->
fonts
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
HLPFILE_FONT
)
*
dscr_num
);
len
=
(
dscr_offset
-
face_offset
)
/
face_num
;
/* mvb font */
if
(
face_offset
>=
16
)
{
hlpfile
->
scale
=
1
;
hlpfile
->
rounderr
=
0
;
WINE_FIXME
(
"mvb font: not implemented
\n
"
);
return
FALSE
;
}
/* new font */
if
(
face_offset
>=
12
)
{
hlpfile
->
scale
=
1
;
hlpfile
->
rounderr
=
0
;
WINE_FIXME
(
"new font: not implemented
\n
"
);
return
FALSE
;
}
/* old font */
hlpfile
->
scale
=
10
;
hlpfile
->
rounderr
=
5
;
/* EPP for (i = face_offset; i < dscr_offset; i += len) */
/* EPP WINE_FIXME("[%d]: %*s\n", i / len, len, ref + i); */
for
(
i
=
0
;
i
<
dscr_num
;
i
++
)
...
...
programs/winhlp32/hlpfile.h
View file @
5200dc9b
...
...
@@ -149,6 +149,9 @@ typedef struct tagHlpFileFile
COLORREF
popup_color
;
LPSTR
help_on_file
;
int
scale
;
int
rounderr
;
}
HLPFILE
;
/*
...
...
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