mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
VideoConfig: Ignore Borderless Fullscreen setting when the backend does not support exclusive fullscreen.
This was expected to be handled by VerifyValidity(), but that only verifies the validity of the INI files.
This commit is contained in:
parent
5bbd34637b
commit
3b5625c76b
4 changed files with 6 additions and 5 deletions
|
@ -1189,7 +1189,7 @@ void CFrame::OnMouse(wxMouseEvent& event)
|
|||
|
||||
void CFrame::DoFullscreen(bool enable_fullscreen)
|
||||
{
|
||||
if (!g_Config.bBorderlessFullscreen &&
|
||||
if (!g_Config.BorderlessFullscreenEnabled() &&
|
||||
!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain &&
|
||||
Core::GetState() == Core::CORE_PAUSE)
|
||||
{
|
||||
|
@ -1216,7 +1216,7 @@ void CFrame::DoFullscreen(bool enable_fullscreen)
|
|||
{
|
||||
m_RenderFrame->ShowFullScreen(true, wxFULLSCREEN_ALL);
|
||||
}
|
||||
else if (g_Config.bBorderlessFullscreen ||
|
||||
else if (g_Config.BorderlessFullscreenEnabled() ||
|
||||
SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain)
|
||||
{
|
||||
// Exiting exclusive fullscreen should be done from a Renderer callback.
|
||||
|
@ -1244,7 +1244,7 @@ void CFrame::DoFullscreen(bool enable_fullscreen)
|
|||
m_RenderFrame->Raise();
|
||||
}
|
||||
|
||||
g_Config.bFullscreen = (g_Config.bBorderlessFullscreen ||
|
||||
g_Config.bFullscreen = (g_Config.BorderlessFullscreenEnabled() ||
|
||||
SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain) ? false : enable_fullscreen;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue