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

@ -31,7 +31,6 @@ void Host_Message(int Id);
void Host_NotifyMapLoaded();
void Host_RefreshDSPDebuggerWindow();
void Host_RequestRenderWindowSize(int width, int height);
void Host_RequestFullscreen(bool enable_fullscreen);
void Host_SetStartupDebuggingParameters();
void Host_SetWiiMoteConnectionState(int _State);
void Host_UpdateDisasmDialog();

View File

@ -100,9 +100,6 @@ void Host_YieldToUI()
void Host_UpdateMainFrame()
{
}
void Host_RequestFullscreen(bool enable)
{
}
void Host_RequestRenderWindowSize(int w, int h)
{
}

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);

View File

@ -452,13 +452,6 @@ void Host_RequestRenderWindowSize(int width, int height)
main_frame->GetEventHandler()->AddPendingEvent(event);
}
void Host_RequestFullscreen(bool enable_fullscreen)
{
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_FULLSCREEN_REQUEST);
event.SetInt(enable_fullscreen ? 1 : 0);
main_frame->GetEventHandler()->AddPendingEvent(event);
}
void Host_SetStartupDebuggingParameters()
{
SConfig& StartUp = SConfig::GetInstance();

View File

@ -113,10 +113,6 @@ void Host_RequestRenderWindowSize(int width, int height)
{
}
void Host_RequestFullscreen(bool enable_fullscreen)
{
}
void Host_SetStartupDebuggingParameters()
{
SConfig& StartUp = SConfig::GetInstance();