mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 09:03:37 +00:00
wineconsole: When loading settings for an application, respect a 0 in FontSize.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7122c9d41d
commit
37654ceba8
|
@ -126,8 +126,17 @@ static void WINECON_RegLoadHelper(HKEY hConKey, struct config_data* cfg)
|
|||
count = sizeof(val);
|
||||
if (!RegQueryValueExW(hConKey, wszFontSize, 0, &type, (LPBYTE)&val, &count))
|
||||
{
|
||||
cfg->cell_height = HIWORD(val);
|
||||
cfg->cell_width = LOWORD(val);
|
||||
int height = HIWORD(val);
|
||||
int width = LOWORD(val);
|
||||
/* A value of zero reflects the default settings */
|
||||
if (height != 0)
|
||||
{
|
||||
cfg->cell_height = height;
|
||||
}
|
||||
if (width != 0)
|
||||
{
|
||||
cfg->cell_width = width;
|
||||
}
|
||||
}
|
||||
|
||||
count = sizeof(val);
|
||||
|
|
Loading…
Reference in a new issue