mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Re-add the show FPS/VPS speed information in the window title when not rendering to main.
Also fix an issue with the DX9 plugin not being the correct size when starting the game in fullscreen at a higher resolution than the desktop resolution. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5375 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
01fc261c2f
commit
4b232e50c5
@ -414,6 +414,7 @@ THREAD_RETURN EmuThread(void *pArg)
|
||||
|
||||
if (g_pUpdateFPSDisplay != NULL)
|
||||
g_pUpdateFPSDisplay(("Loading " + _CoreParameter.m_strFilename).c_str());
|
||||
Host_UpdateTitle(("Loading " + _CoreParameter.m_strFilename).c_str());
|
||||
|
||||
// Setup our core, but can't use dynarec if we are compare server
|
||||
if (_CoreParameter.iCPUCore && (!_CoreParameter.bRunCompareServer || _CoreParameter.bRunCompareClient))
|
||||
@ -435,6 +436,7 @@ THREAD_RETURN EmuThread(void *pArg)
|
||||
|
||||
if (g_pUpdateFPSDisplay != NULL)
|
||||
g_pUpdateFPSDisplay(("Loaded " + _CoreParameter.m_strFilename).c_str());
|
||||
Host_UpdateTitle(("Loaded " + _CoreParameter.m_strFilename).c_str());
|
||||
|
||||
// Update the window again because all stuff is initialized
|
||||
Host_UpdateDisasmDialog();
|
||||
@ -454,6 +456,7 @@ THREAD_RETURN EmuThread(void *pArg)
|
||||
|
||||
if (g_pUpdateFPSDisplay != NULL)
|
||||
g_pUpdateFPSDisplay(("Loaded " + _CoreParameter.m_strFilename).c_str());
|
||||
Host_UpdateTitle(("Loaded " + _CoreParameter.m_strFilename).c_str());
|
||||
|
||||
// Update the window again because all stuff is initialized
|
||||
Host_UpdateDisasmDialog();
|
||||
@ -663,6 +666,7 @@ void VideoThrottle()
|
||||
// Show message
|
||||
if (g_pUpdateFPSDisplay != NULL)
|
||||
g_pUpdateFPSDisplay(SMessage.c_str());
|
||||
Host_UpdateTitle(SMessage.c_str());
|
||||
|
||||
Host_UpdateStatusBar(SMessage.c_str());
|
||||
|
||||
|
@ -38,6 +38,7 @@
|
||||
|
||||
void Host_Message(int Id);
|
||||
void Host_UpdateMainFrame();
|
||||
void Host_UpdateTitle(const char* title);
|
||||
void Host_UpdateDisasmDialog();
|
||||
void Host_UpdateLogDisplay();
|
||||
void Host_UpdateMemoryView();
|
||||
|
@ -732,6 +732,11 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
|
||||
}
|
||||
break;
|
||||
|
||||
case IDM_UPDATETITLE:
|
||||
if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain && m_RenderFrame)
|
||||
m_RenderFrame->SetTitle(event.GetString());
|
||||
break;
|
||||
|
||||
case WM_USER_CREATE:
|
||||
DoFullscreen(SConfig::GetInstance().m_LocalCoreStartupParameter.bFullscreen);
|
||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
|
||||
|
@ -236,6 +236,7 @@ enum
|
||||
IDM_UPDATEDISASMDIALOG,
|
||||
IDM_UPDATEGUI,
|
||||
IDM_UPDATESTATUSBAR,
|
||||
IDM_UPDATETITLE,
|
||||
IDM_UPDATEBREAKPOINTS,
|
||||
IDM_HOST_MESSAGE,
|
||||
|
||||
|
@ -611,6 +611,13 @@ void Host_UpdateMainFrame()
|
||||
}
|
||||
}
|
||||
|
||||
void Host_UpdateTitle(const char* title)
|
||||
{
|
||||
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATETITLE);
|
||||
event.SetString(wxString::FromAscii(title));
|
||||
main_frame->GetEventHandler()->AddPendingEvent(event);
|
||||
}
|
||||
|
||||
void Host_UpdateBreakPointView()
|
||||
{
|
||||
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATEBREAKPOINTS);
|
||||
|
@ -248,9 +248,6 @@ void Initialize(void *init)
|
||||
|
||||
void Video_Prepare()
|
||||
{
|
||||
// Tell the host the window is ready
|
||||
g_VideoInitialize.pCoreMessage(WM_USER_CREATE);
|
||||
|
||||
// Better be safe...
|
||||
s_efbAccessRequested = FALSE;
|
||||
s_FifoShuttingDown = FALSE;
|
||||
@ -269,6 +266,9 @@ void Video_Prepare()
|
||||
PixelShaderManager::Init();
|
||||
CommandProcessor::Init();
|
||||
PixelEngine::Init();
|
||||
|
||||
// Tell the host the window is ready
|
||||
g_VideoInitialize.pCoreMessage(WM_USER_CREATE);
|
||||
}
|
||||
|
||||
void Shutdown()
|
||||
|
Loading…
Reference in New Issue
Block a user