- consolidate minimum screen resolution so that it's easier to change
This commit is contained in:
parent
e6dab46b90
commit
efa9284141
7 changed files with 20 additions and 21 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue