Skip to content

Commit

Permalink
- Adjusted scaled status bar for 4x4 low detail mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
drfrag666 committed Mar 16, 2018
1 parent 2ee7ca9 commit 443f5ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/g_shared/shared_sbar.cpp
Expand Up @@ -60,6 +60,7 @@ EXTERN_CVAR (Bool, am_showtime)
EXTERN_CVAR (Bool, am_showtotaltime)
EXTERN_CVAR (Bool, noisedebug)
EXTERN_CVAR (Bool, hud_scale)
EXTERN_CVAR (Int, r_detail)

FBaseStatusBar *StatusBar;

Expand Down Expand Up @@ -203,7 +204,7 @@ void FBaseStatusBar::SetScaled (bool scale)
bool wide = !(CheckRatio (SCREENWIDTH, SCREENHEIGHT) & 3);
int basewidth = wide ? 1280 : 960;
ST_X = 0;
ST_Y = 200 - RelTop;
ST_Y = 200 - RelTop + (r_detail > 4 ? 1 : 0);
::ST_Y = Scale (ST_Y, SCREENHEIGHT, 200);
Displacement = 0;
}
Expand Down

0 comments on commit 443f5ce

Please sign in to comment.