mirror of https://github.com/mgba-emu/mgba.git
Ports: Interframe blending menu option
This commit is contained in:
parent
456dbc482f
commit
dd1514cb8a
|
@ -108,6 +108,16 @@ void mGUIShowConfig(struct mGUIRunner* runner, struct GUIMenuItem* extra, size_t
|
|||
.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",
|
||||
|
|
|
@ -394,8 +394,9 @@ void mPSP2LoadROM(struct mGUIRunner* runner) {
|
|||
}
|
||||
|
||||
int fakeBool;
|
||||
mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool);
|
||||
if (mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool)) {
|
||||
interframeBlending = fakeBool;
|
||||
}
|
||||
|
||||
MutexInit(&audioContext.mutex);
|
||||
ConditionInit(&audioContext.cond);
|
||||
|
|
|
@ -289,8 +289,9 @@ static void _gameLoaded(struct mGUIRunner* runner) {
|
|||
}
|
||||
|
||||
int fakeBool;
|
||||
mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool);
|
||||
if (mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool)) {
|
||||
interframeBlending = fakeBool;
|
||||
}
|
||||
|
||||
rumble.up = 0;
|
||||
rumble.down = 0;
|
||||
|
|
|
@ -859,8 +859,9 @@ void _unpaused(struct mGUIRunner* runner) {
|
|||
}
|
||||
}
|
||||
int fakeBool;
|
||||
mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool);
|
||||
if (mCoreConfigGetIntValue(&runner->config, "interframeBlending", &fakeBool)) {
|
||||
interframeBlending = fakeBool;
|
||||
}
|
||||
|
||||
float stretch;
|
||||
if (mCoreConfigGetFloatValue(&runner->config, "stretchWidth", &stretch)) {
|
||||
|
|
Loading…
Reference in New Issue