all repos — mgba @ dd1514cb8aa41d0071c1f756c86a0acbbbfa3a0e

mGBA Game Boy Advance Emulator

Ports: Interframe blending menu option
Vicki Pfau vi@endrift.com
Wed, 29 May 2019 15:13:55 -0700
commit

dd1514cb8aa41d0071c1f756c86a0acbbbfa3a0e

parent

456dbc482f9ee76e8b632e296ff4162ac38f18a1

M src/feature/gui/gui-config.csrc/feature/gui/gui-config.c

@@ -109,6 +109,16 @@ .title = "Select SGB BIOS path",

.data = "sgb.bios", }; *GUIMenuItemListAppend(&menu.items) = (struct GUIMenuItem) { + .title = "Interframe blending", + .data = "interframeBlending", + .submenu = 0, + .state = false, + .validStates = (const char*[]) { + "Off", "On" + }, + .nStates = 2 + }; + *GUIMenuItemListAppend(&menu.items) = (struct GUIMenuItem) { .title = "Enable SGB borders", .data = "sgb.borders", .submenu = 0,
M src/platform/psp2/psp2-context.csrc/platform/psp2/psp2-context.c

@@ -394,8 +394,9 @@ break;

} int fakeBool; - mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool); - interframeBlending = fakeBool; + if (mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool)) { + interframeBlending = fakeBool; + } MutexInit(&audioContext.mutex); ConditionInit(&audioContext.cond);
M src/platform/switch/main.csrc/platform/switch/main.c

@@ -289,8 +289,9 @@ screenMode = mode;

} int fakeBool; - mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool); - interframeBlending = fakeBool; + if (mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool)) { + interframeBlending = fakeBool; + } rumble.up = 0; rumble.down = 0;
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -859,8 +859,9 @@ break;

} } int fakeBool; - mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool); - interframeBlending = fakeBool; + if (mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool)) { + interframeBlending = fakeBool; + } float stretch; if (mCoreConfigGetFloatValue(&runner->config, "stretchWidth", &stretch)) {