mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 01:28:57 +00:00
Merge pull request #726 from Armada651/ogl-exclusive
CFrame: Add fullscreen window styles to enable exclusive mode in OpenGL.
This commit is contained in:
commit
7b9c8da468
3 changed files with 24 additions and 4 deletions
|
@ -191,6 +191,25 @@ WXLRESULT CRenderFrame::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPa
|
|||
}
|
||||
#endif
|
||||
|
||||
bool CRenderFrame::ShowFullScreen(bool show, long style)
|
||||
{
|
||||
if (show)
|
||||
{
|
||||
// OpenGL requires the pop-up style to activate exclusive mode.
|
||||
SetWindowStyle((GetWindowStyle() & ~wxDEFAULT_FRAME_STYLE) | wxPOPUP_WINDOW);
|
||||
}
|
||||
|
||||
bool result = wxTopLevelWindow::ShowFullScreen(show, style);
|
||||
|
||||
if (!show)
|
||||
{
|
||||
// Restore the default style.
|
||||
SetWindowStyle((GetWindowStyle() & ~wxPOPUP_WINDOW) | wxDEFAULT_FRAME_STYLE);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
// event tables
|
||||
// Notice that wxID_HELP will be processed for the 'About' menu and the toolbar
|
||||
// help button.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue