- vid_scalemode 1 now only goes down to 640x400 at minimum, instead of 320x200

This commit is contained in:
Rachael Alexanderson 2020-01-04 15:05:26 -05:00
parent 58acbfb6b5
commit cb7a097ed4

View file

@ -84,7 +84,7 @@ namespace
if (sx <= 0. || sy <= 0.)
return 1.; // prevent x/0 error
// 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;
lastsx = sx;
lastsy = sy;