mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
fix last bugs when changing video settings with no game loaded
This commit is contained in:
@ -398,7 +398,6 @@ void DeInit()
|
|||||||
|
|
||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
UpdateDisplaySettings();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateDisplaySettings()
|
void UpdateDisplaySettings()
|
||||||
|
@ -1472,14 +1472,6 @@ void OnAreaResize(uiAreaHandler* handler, uiArea* area, int width, int height)
|
|||||||
|
|
||||||
void Run()
|
void Run()
|
||||||
{
|
{
|
||||||
if (GPU3D::Renderer != Config::_3DRenderer)
|
|
||||||
{
|
|
||||||
if (Screen_UseGL) uiGLMakeContextCurrent(GLContext);
|
|
||||||
GPU3D::DeInitRenderer();
|
|
||||||
GPU3D::InitRenderer(Screen_UseGL);
|
|
||||||
if (Screen_UseGL) uiGLMakeContextCurrent(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
EmuRunning = 1;
|
EmuRunning = 1;
|
||||||
RunningSomething = true;
|
RunningSomething = true;
|
||||||
|
|
||||||
@ -2125,7 +2117,10 @@ void OnSetLimitFPS(uiMenuItem* item, uiWindow* window, void* blarg)
|
|||||||
|
|
||||||
void ApplyNewSettings(int type)
|
void ApplyNewSettings(int type)
|
||||||
{
|
{
|
||||||
if (!RunningSomething && type != 2) return;
|
if (!RunningSomething)
|
||||||
|
{
|
||||||
|
if (type == 1) return;
|
||||||
|
}
|
||||||
|
|
||||||
int prevstatus = EmuRunning;
|
int prevstatus = EmuRunning;
|
||||||
EmuRunning = 3;
|
EmuRunning = 3;
|
||||||
|
Reference in New Issue
Block a user