Host: Remove the Host_RequestFullscreen() method.

No longer needed, since the exclusive mode switch is now handled synchronously on the CPU thread.
This commit is contained in:
Jules Blok
2016-11-09 01:10:32 +01:00
parent 0a194f8a3e
commit 0028ee96b3
5 changed files with 0 additions and 30 deletions

View File

@ -701,21 +701,6 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
}
break;
case IDM_FULLSCREEN_REQUEST:
{
bool enable_fullscreen = event.GetInt() == 0 ? false : true;
ToggleDisplayMode(enable_fullscreen);
if (m_RenderFrame != nullptr)
m_RenderFrame->ShowFullScreen(enable_fullscreen);
// If the stop dialog initiated this fullscreen switch then we need
// to pause the emulator after we've completed the switch.
// TODO: Allow the renderer to switch fullscreen modes while paused.
if (m_confirmStop)
Core::SetState(Core::CORE_PAUSE);
}
break;
case WM_USER_CREATE:
if (SConfig::GetInstance().bHideCursor)
m_RenderParent->SetCursor(wxCURSOR_BLANK);