diff options
| author | Jules Blok <jules.blok@gmail.com> | 2014-10-09 11:30:26 +0200 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-10-09 11:30:26 +0200 |
| commit | 03e1bd0995c5e77d954067653716fd72b7579c95 (patch) | |
| tree | c6ff67d465b4b4390fda217dca6543c8d1248a52 /Source/Core/DolphinWX/Frame.cpp | |
| parent | 39f421d45ddf9ba77ad8e6a3ee676bcd31157a52 (diff) | |
Limit Borderless Fullscreen to Windows systems.
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Frame.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index b101357d02..dc44ef5d70 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -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; } |
