Ports: Interframe blending menu option
Vicki Pfau vi@endrift.com
Wed, 29 May 2019 15:13:55 -0700
4 files changed,
19 insertions(+),
6 deletions(-)
M
src/feature/gui/gui-config.c
→
src/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.c
→
src/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.c
→
src/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.c
→
src/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)) {