mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
DisplayWindowMupen64plus: disable WithRate function on any failure
This commit is contained in:
parent
07ce8f7bcb
commit
3df9b2c312
|
@ -101,7 +101,7 @@ bool DisplayWindowMupen64plus::_start()
|
||||||
const m64p_video_flags flags = M64VIDEOFLAG_SUPPORT_RESIZING;
|
const m64p_video_flags flags = M64VIDEOFLAG_SUPPORT_RESIZING;
|
||||||
#ifdef M64P_GLIDENUI
|
#ifdef M64P_GLIDENUI
|
||||||
returnValue = FunctionWrapper::CoreVideo_SetVideoModeWithRate(m_screenWidth, m_screenHeight, m_screenRefresh, 0, m_bFullscreen ? M64VIDEO_FULLSCREEN : M64VIDEO_WINDOWED, flags);
|
returnValue = FunctionWrapper::CoreVideo_SetVideoModeWithRate(m_screenWidth, m_screenHeight, m_screenRefresh, 0, m_bFullscreen ? M64VIDEO_FULLSCREEN : M64VIDEO_WINDOWED, flags);
|
||||||
if (returnValue == M64ERR_UNSUPPORTED)
|
if (returnValue != M64ERR_SUCCESS)
|
||||||
{
|
{
|
||||||
_supportsWithRateFunctions = false;
|
_supportsWithRateFunctions = false;
|
||||||
#endif // M64P_GLIDENUI
|
#endif // M64P_GLIDENUI
|
||||||
|
|
Loading…
Reference in New Issue
Block a user