mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
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:
parent
e272286df5
commit
b1ebb897e8
5 changed files with 3 additions and 3 deletions
|
@ -179,7 +179,7 @@ CUSTOM_CVARD(Int, hud_scale, 100, CVAR_ARCHIVE | CVAR_NOINITCALL, "changes the h
|
|||
{
|
||||
if (self < 35) self = 35;
|
||||
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.
|
||||
|
|
|
@ -54,7 +54,6 @@ int CONFIG_ReadSetup(void)
|
|||
ud.slidebar_paldisabled = 1;
|
||||
ud.statusbarflags = 0;//STATUSBAR_NOSHRINK;
|
||||
ud.statusbarmode = 1;
|
||||
ud.statusbarscale = 100;
|
||||
|
||||
ud.god = 0;
|
||||
ud.m_respawn_items = 0;
|
||||
|
|
|
@ -5650,6 +5650,7 @@ int GameInterface::app_main()
|
|||
CONFIG_ReadSetup();
|
||||
|
||||
hud_size.Callback();
|
||||
hud_scale.Callback();
|
||||
S_InitSound();
|
||||
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ int32_t CONFIG_ReadSetup(void)
|
|||
|
||||
ud.screen_tilting = 1;
|
||||
ud.statusbarflags = STATUSBAR_NOSHRINK;
|
||||
ud.statusbarscale = 100;
|
||||
playerteam = 0;
|
||||
ud.angleinterpolation = 0;
|
||||
|
||||
|
|
|
@ -7163,6 +7163,7 @@ int GameInterface::app_main()
|
|||
|
||||
|
||||
hud_size.Callback();
|
||||
hud_scale.Callback();
|
||||
S_InitSound();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue