21:9 aspect ratio support

- vid_aspect 6 forces 21:9
This commit is contained in:
Michael Labbe 2016-03-02 02:31:12 -08:00 committed by Randy Heit
commit 97821a3036
8 changed files with 31 additions and 16 deletions

View file

@ -816,7 +816,7 @@ void DCanvas::FillBorder (FTexture *img)
return;
}
int bordtop, bordbottom, bordleft, bordright, bord;
if (myratio & 4)
if (Is54Aspect(myratio))
{ // Screen is taller than it is wide
bordleft = bordright = 0;
bord = Height - Height * BaseRatioSizes[myratio][3] / 48;