all repos — mgba @ d4ca59df163c3ca780b964b817d69f5becd3391d

mGBA Game Boy Advance Emulator

Switch: Make OpenGL scale adjustable while running
Vicki Pfau vi@endrift.com
Fri, 31 Jan 2020 18:05:24 -0800
commit

d4ca59df163c3ca780b964b817d69f5becd3391d

parent

d46f12aa8efbd194136d305bf2cb37e3e499b4af

2 files changed, 7 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -26,6 +26,7 @@ - Qt: Fix extraneous dialog (fixes mgba.io/i/1654)

- Util: Fix crash reading invalid ELFs Misc: - Qt: Renderer can be changed while a game is running + - Switch: Make OpenGL scale adjustable while running 0.8.0: (2020-01-21) Features:
M src/platform/switch/main.csrc/platform/switch/main.c

@@ -320,6 +320,11 @@ }

} } + 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 @@ },

.nStates = 16 }, { - .title = "GPU-accelerated renderer (experimental, requires game reload)", + .title = "GPU-accelerated renderer (requires game reload)", .data = "hwaccelVideo", .submenu = 0, .state = 0,