mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-11 05:01:09 +00:00
- vid_scalemode 1 now only goes down to 640x400 at minimum, instead of 320x200
This commit is contained in:
parent
58acbfb6b5
commit
cb7a097ed4
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ namespace
|
||||||
if (sx <= 0. || sy <= 0.)
|
if (sx <= 0. || sy <= 0.)
|
||||||
return 1.; // prevent x/0 error
|
return 1.; // prevent x/0 error
|
||||||
// set absolute minimum scale to fill the entire screen but get as close to 640x400 as possible
|
// set absolute minimum scale to fill the entire screen but get as close to 640x400 as possible
|
||||||
float ssx = (float)(min_width) / sx, ssy = (float)(min_height) / sy;
|
float ssx = (float)(VID_MIN_UI_WIDTH) / sx, ssy = (float)(VID_MIN_UI_HEIGHT) / sy;
|
||||||
result = (ssx < ssy) ? ssy : ssx;
|
result = (ssx < ssy) ? ssy : ssx;
|
||||||
lastsx = sx;
|
lastsx = sx;
|
||||||
lastsy = sy;
|
lastsy = sy;
|
||||||
|
|
Loading…
Reference in a new issue