Fix 5:4 aspect ratio gun and status bar

This commit is contained in:
Magnus Norddahl 2016-09-13 11:46:05 +02:00 committed by Christoph Oelckers
commit 172f58c165
6 changed files with 21 additions and 13 deletions

View file

@ -300,7 +300,7 @@ void DBaseStatusBar::SetScaled (bool scale, bool force)
ST_X = 0;
ST_Y = VirticalResolution - RelTop;
float aspect = ActiveRatio(SCREENWIDTH, SCREENHEIGHT);
if (aspect >= 1.3f)
if (!Is54Aspect(aspect))
{ // Normal resolution
::ST_Y = Scale (ST_Y, SCREENHEIGHT, VirticalResolution);
}