all repos — mgba @ 67c3f386a4106d5d3017aea882f64dc0ae94a375

mGBA Game Boy Advance Emulator

Switch: Pixel-accurate should default to aspect-full if it exceeds screen dimensions
Vicki Pfau vi@endrift.com
Mon, 27 May 2019 08:46:26 -0700
commit

67c3f386a4106d5d3017aea882f64dc0ae94a375

parent

89c37820c6a30ec4a9eb9dd3ade851a712d8a607

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/platform/switch/main.csrc/platform/switch/main.c

@@ -313,7 +313,10 @@ max = floor(1.0 / aspectX);

} else { max = floor(1.0 / aspectY); } - break; + if (max >= 1.0) { + break; + } + // Fall through case SM_AF: if (aspectX > aspectY) { max = 1.0 / aspectX;