mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Limit Borderless Fullscreen to Windows systems.
This commit is contained in:
parent
39f421d45d
commit
03e1bd0995
2 changed files with 6 additions and 0 deletions
|
@ -187,19 +187,23 @@ WXLRESULT CRenderFrame::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPa
|
|||
|
||||
bool CRenderFrame::ShowFullScreen(bool show, long style)
|
||||
{
|
||||
#if defined WIN32
|
||||
if (show && !g_Config.bBorderlessFullscreen)
|
||||
{
|
||||
// OpenGL requires the pop-up style to activate exclusive mode.
|
||||
SetWindowStyle((GetWindowStyle() & ~wxDEFAULT_FRAME_STYLE) | wxPOPUP_WINDOW);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool result = wxTopLevelWindow::ShowFullScreen(show, style);
|
||||
|
||||
#if defined WIN32
|
||||
if (!show)
|
||||
{
|
||||
// Restore the default style.
|
||||
SetWindowStyle((GetWindowStyle() & ~wxPOPUP_WINDOW) | wxDEFAULT_FRAME_STYLE);
|
||||
}
|
||||
#endif
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue