Frame: Only prevent exclusive fullscreen switches when the emulator is paused.

This fixes the "Use Fullscreen" setting in which case the switch is done while the emulator is uninitialized.
This commit is contained in:
Jules Blok 2014-07-27 00:08:27 +02:00
parent 957a39942e
commit 1f24122d35
1 changed files with 1 additions and 1 deletions

View File

@ -1191,7 +1191,7 @@ void CFrame::DoFullscreen(bool enable_fullscreen)
{
if (!g_Config.bBorderlessFullscreen &&
!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain &&
Core::GetState() != Core::CORE_RUN)
Core::GetState() == Core::CORE_PAUSE)
{
// A responsive renderer is required for exclusive fullscreen, but the
// renderer can only respond in the running state. Therefore we ignore