mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Make "Start in Fullscreen" work with the DX9 plugin. Also a partial fix to the problem with Windows not saving the window size correctly when not rendering to main.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5352 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
fe5fb76fd4
commit
16d3cfadb4
@ -121,7 +121,7 @@ class CFrame : public wxFrame
|
||||
void OnRenderParentClose(wxCloseEvent& event);
|
||||
void OnRenderParentMove(wxMoveEvent& event);
|
||||
bool RendererHasFocus();
|
||||
void DoFullscreen(bool _F);
|
||||
void DoFullscreen(bool bF);
|
||||
|
||||
// AUI
|
||||
wxAuiManager *m_Mgr;
|
||||
|
@ -844,7 +844,14 @@ void CFrame::DoStop()
|
||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bHideCursor)
|
||||
m_RenderParent->SetCursor(wxCURSOR_ARROW);
|
||||
if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
if (!RendererIsFullscreen() && !m_RenderFrame->IsMaximized())
|
||||
m_RenderParent->GetSize(&SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowWidth,
|
||||
&SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowHeight);
|
||||
#endif
|
||||
m_RenderFrame->Destroy();
|
||||
}
|
||||
m_RenderParent = NULL;
|
||||
|
||||
// Clean framerate indications from the status bar.
|
||||
|
@ -248,6 +248,9 @@ 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;
|
||||
|
Loading…
Reference in New Issue
Block a user