all repos — mgba @ ae3acd658bdfdde22fa322bf8a4bc8944069f58f

mGBA Game Boy Advance Emulator

SDL: Make sure scaling ratio is at least 1
Jeffrey Pfau jeffrey@endrift.com
Wed, 18 Mar 2015 01:39:36 -0700
commit

ae3acd658bdfdde22fa322bf8a4bc8944069f58f

parent

1af7b56349e593b77fd915d6674e6dc63110e741

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/platform/sdl/main.csrc/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;