Repair HUD scaling returning to 100% when relaunching Duke or RR games.

- Resolves https://forum.zdoom.org/viewtopic.php?f=340&t=67811
This commit is contained in:
Mitchell Richters 2020-03-22 20:20:59 +11:00 committed by Christoph Oelckers
parent e272286df5
commit b1ebb897e8
5 changed files with 3 additions and 3 deletions

View file

@ -179,7 +179,7 @@ CUSTOM_CVARD(Int, hud_scale, 100, CVAR_ARCHIVE | CVAR_NOINITCALL, "changes the h
{ {
if (self < 35) self = 35; if (self < 35) self = 35;
else if (self > 100) self = 100; else if (self > 100) self = 100;
else gi->set_hud_scale(hud_scale); else gi->set_hud_scale(self);
} }
// This is to allow flattening the overly complicated HUD configuration to one single value and keep the complexity safely inside the HUD code. // This is to allow flattening the overly complicated HUD configuration to one single value and keep the complexity safely inside the HUD code.

View file

@ -54,7 +54,6 @@ int CONFIG_ReadSetup(void)
ud.slidebar_paldisabled = 1; ud.slidebar_paldisabled = 1;
ud.statusbarflags = 0;//STATUSBAR_NOSHRINK; ud.statusbarflags = 0;//STATUSBAR_NOSHRINK;
ud.statusbarmode = 1; ud.statusbarmode = 1;
ud.statusbarscale = 100;
ud.god = 0; ud.god = 0;
ud.m_respawn_items = 0; ud.m_respawn_items = 0;

View file

@ -5650,6 +5650,7 @@ int GameInterface::app_main()
CONFIG_ReadSetup(); CONFIG_ReadSetup();
hud_size.Callback(); hud_size.Callback();
hud_scale.Callback();
S_InitSound(); S_InitSound();

View file

@ -43,7 +43,6 @@ int32_t CONFIG_ReadSetup(void)
ud.screen_tilting = 1; ud.screen_tilting = 1;
ud.statusbarflags = STATUSBAR_NOSHRINK; ud.statusbarflags = STATUSBAR_NOSHRINK;
ud.statusbarscale = 100;
playerteam = 0; playerteam = 0;
ud.angleinterpolation = 0; ud.angleinterpolation = 0;

View file

@ -7163,6 +7163,7 @@ int GameInterface::app_main()
hud_size.Callback(); hud_size.Callback();
hud_scale.Callback();
S_InitSound(); S_InitSound();