- consolidate minimum screen resolution so that it's easier to change

This commit is contained in:
Rachael Alexanderson 2019-04-07 06:49:54 -04:00
commit efa9284141
7 changed files with 20 additions and 21 deletions

View file

@ -216,8 +216,8 @@ void DFrameBuffer::Update()
int initialHeight = GetClientHeight();
int clientWidth = ViewportScaledWidth(initialWidth, initialHeight);
int clientHeight = ViewportScaledHeight(initialWidth, initialHeight);
if (clientWidth < 640) clientWidth = 640;
if (clientHeight < 400) clientHeight = 400;
if (clientWidth < VID_MIN_WIDTH) clientWidth = VID_MIN_WIDTH;
if (clientHeight < VID_MIN_HEIGHT) clientHeight = VID_MIN_HEIGHT;
if (clientWidth > 0 && clientHeight > 0 && (GetWidth() != clientWidth || GetHeight() != clientHeight))
{
SetVirtualSize(clientWidth, clientHeight);