SDL: Make sure scaling ratio is at least 1
Jeffrey Pfau jeffrey@endrift.com
Wed, 18 Mar 2015 01:39:36 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/platform/sdl/main.c
→
src/platform/sdl/main.c
@@ -76,6 +76,9 @@ renderer.events.fullscreen = opts.fullscreen;
renderer.events.windowUpdated = 0; #endif renderer.ratio = graphicsOpts.multiplier; + if (renderer.ratio == 0) { + renderer.ratio = 1; + } renderer.lockAspectRatio = opts.lockAspectRatio; renderer.filter = opts.resampleVideo;