From 67c3f386a4106d5d3017aea882f64dc0ae94a375 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 27 May 2019 08:46:26 -0700 Subject: [PATCH] Switch: Pixel-accurate should default to aspect-full if it exceeds screen dimensions --- src/platform/switch/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/platform/switch/main.c b/src/platform/switch/main.c index c1e64e002..3c86706ae 100644 --- a/src/platform/switch/main.c +++ b/src/platform/switch/main.c @@ -313,7 +313,10 @@ static void _drawTex(struct mGUIRunner* runner, unsigned width, unsigned height, } else { max = floor(1.0 / aspectY); } - break; + if (max >= 1.0) { + break; + } + // Fall through case SM_AF: if (aspectX > aspectY) { max = 1.0 / aspectX;