all repos — mgba @ 6617a9dccdf693c25b8f2cd19214fd988bad6ffe

mGBA Game Boy Advance Emulator

Switch: Adapt to egl changes
Vicki Pfau vi@endrift.com
Wed, 02 Jan 2019 20:55:37 -0800
commit

6617a9dccdf693c25b8f2cd19214fd988bad6ffe

parent

3fb46a2a8832c383429fd65c00ba3e642c750bcf

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

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

@@ -120,7 +120,7 @@ if (!numConfigs) {

goto _fail1; } - s_surface = eglCreateWindowSurface(s_display, config, "", NULL); + s_surface = eglCreateWindowSurface(s_display, config, nwindowGetDefault(), NULL); if (!s_surface) { goto _fail1; }

@@ -403,6 +403,7 @@ enqueuedBuffers -= audoutNReleasedBuffers;

} } frameLimiter = limit; + eglSwapInterval(s_surface, limit); } static bool _running(struct mGUIRunner* runner) {

@@ -663,11 +664,12 @@ .data = "fastForwardCap",

.submenu = 0, .state = 7, .validStates = (const char*[]) { - "3", "4", "5", "6", "7", "8", "9", + "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "20", "30" }, .stateMappings = (const struct GUIVariant[]) { + GUI_V_U(2), GUI_V_U(3), GUI_V_U(4), GUI_V_U(5),

@@ -684,7 +686,7 @@ GUI_V_U(15),

GUI_V_U(20), GUI_V_U(30), }, - .nStates = 15 + .nStates = 16 }, }, .nConfigExtra = 2,