SW: Avoid a one-pixel tall hall of mirrors above the full status bar

git-svn-id: https://svn.eduke32.com/eduke32@8355 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-12-05 05:40:43 +00:00 committed by Christoph Oelckers
parent 007d16712c
commit 5624c9b5b0

View file

@ -441,10 +441,9 @@ static void BorderSetView(PLAYERp, int *Xdim, int *Ydim, int *ScreenSize)
y = DIV2(*Ydim) - DIV2((*ScreenSize **Ydim) / *Xdim);
y2 = y + ((*ScreenSize **Ydim) / *Xdim) - 1;
if (ydim == 480 && gs.BorderNum == 2)
{
y2+=2;
}
// avoid a one-pixel tall HOM
if (gs.BorderNum == BORDER_BAR)
++y2;
// global windowxy1, windowxy2 coords set here
videoSetViewableArea(x, y, x2, y2);