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:
parent
9d422acae3
commit
b7d5819ec6
|
@ -123,6 +123,11 @@ void OGLVideo::stop()
|
|||
_stop();
|
||||
}
|
||||
|
||||
void OGLVideo::restart()
|
||||
{
|
||||
m_bResizeWindow = true;
|
||||
}
|
||||
|
||||
void OGLVideo::swapBuffers()
|
||||
{
|
||||
_swapBuffers();
|
||||
|
|
1
OpenGL.h
1
OpenGL.h
|
@ -144,6 +144,7 @@ class OGLVideo
|
|||
public:
|
||||
void start();
|
||||
void stop();
|
||||
void restart();
|
||||
void swapBuffers();
|
||||
void saveScreenshot();
|
||||
bool changeWindow();
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user