Commit d93592cd authored by Jean-Christophe Cardot's avatar Jean-Christophe Cardot Committed by Michael Stefaniuc

winhlp32: Prepare winhlp32 for more font types.

Signed-off-by: 's avatarJean-Christophe Cardot <wine@cardot.net> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit 5200dc9b) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 5803a62f
...@@ -1877,6 +1877,26 @@ static BOOL HLPFILE_ReadFont(HLPFILE* hlpfile) ...@@ -1877,6 +1877,26 @@ static BOOL HLPFILE_ReadFont(HLPFILE* hlpfile)
hlpfile->fonts = HeapAlloc(GetProcessHeap(), 0, sizeof(HLPFILE_FONT) * dscr_num); hlpfile->fonts = HeapAlloc(GetProcessHeap(), 0, sizeof(HLPFILE_FONT) * dscr_num);
len = (dscr_offset - face_offset) / face_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 for (i = face_offset; i < dscr_offset; i += len) */
/* EPP WINE_FIXME("[%d]: %*s\n", i / len, len, ref + i); */ /* EPP WINE_FIXME("[%d]: %*s\n", i / len, len, ref + i); */
for (i = 0; i < dscr_num; i++) for (i = 0; i < dscr_num; i++)
......
...@@ -149,6 +149,9 @@ typedef struct tagHlpFileFile ...@@ -149,6 +149,9 @@ typedef struct tagHlpFileFile
COLORREF popup_color; COLORREF popup_color;
LPSTR help_on_file; LPSTR help_on_file;
int scale;
int rounderr;
} HLPFILE; } HLPFILE;
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment