1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Implement video restart on settings change.

This commit is contained in:
Sergey Lipskiy 2015-02-28 11:13:29 +06:00
parent 9d422acae3
commit b7d5819ec6
3 changed files with 8 additions and 1 deletions

View File

@ -123,6 +123,11 @@ void OGLVideo::stop()
_stop();
}
void OGLVideo::restart()
{
m_bResizeWindow = true;
}
void OGLVideo::swapBuffers()
{
_swapBuffers();

View File

@ -144,6 +144,7 @@ class OGLVideo
public:
void start();
void stop();
void restart();
void swapBuffers();
void saveScreenshot();
bool changeWindow();

View File

@ -398,7 +398,8 @@ void Config_DoConfig(HWND hParent)
#else // LEGACY_UI
void Config_DoConfig(HWND hParent)
{
RunConfig();
if (RunConfig())
video().restart();
}
void Config_LoadConfig()