SDL: Make sure scaling ratio is at least 1

This commit is contained in:
Jeffrey Pfau 2015-03-18 01:39:36 -07:00
parent 1af7b56349
commit ae3acd658b
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ int main(int argc, char** argv) {
renderer.events.windowUpdated = 0;
#endif
renderer.ratio = graphicsOpts.multiplier;
if (renderer.ratio == 0) {
renderer.ratio = 1;
}
renderer.lockAspectRatio = opts.lockAspectRatio;
renderer.filter = opts.resampleVideo;