From 79145e29a26c8a9201d0616ba353add8c956d68a Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 31 Jan 2020 18:05:24 -0800 Subject: [PATCH] Switch: Make OpenGL scale adjustable while running --- CHANGES | 2 ++ src/platform/switch/main.c | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index fe8905265..dae63f5f2 100644 --- a/CHANGES +++ b/CHANGES @@ -16,6 +16,8 @@ Other fixes: - Qt: Fix toggled actions on gamepads (fixes mgba.io/i/1650) - Qt: Fix extraneous dialog (fixes mgba.io/i/1654) - Util: Fix crash reading invalid ELFs +Misc: + - Switch: Make OpenGL scale adjustable while running 0.8.0: (2020-01-21) Features: diff --git a/src/platform/switch/main.c b/src/platform/switch/main.c index 45560cab4..e27450fd1 100644 --- a/src/platform/switch/main.c +++ b/src/platform/switch/main.c @@ -320,6 +320,11 @@ static void _gameLoaded(struct mGUIRunner* runner) { } } + int scale; + if (mCoreConfigGetUIntValue(&runner->config, "videoScale", &scale)) { + runner->core->reloadConfigOption(runner->core, "videoScale", &runner->config); + } + rumble.up = 0; rumble.down = 0; } @@ -857,7 +862,7 @@ int main(int argc, char* argv[]) { .nStates = 16 }, { - .title = "GPU-accelerated renderer (experimental, requires game reload)", + .title = "GPU-accelerated renderer (requires game reload)", .data = "hwaccelVideo", .submenu = 0, .state = 0,