diff options
| author | Rachel Bryk <RachelBryk@gmail.com> | 2013-01-31 03:51:29 -0500 |
|---|---|---|
| committer | Rachel Bryk <RachelBryk@gmail.com> | 2013-01-31 03:51:29 -0500 |
| commit | de27f0bea9ff541fddfea8a875b15372d6420f8d (patch) | |
| tree | 6f06d2d5f29f6e90dcc52705809b9d3b83a974a4 /Source/Core | |
| parent | 0ffdd2607f4ce56e4a35e959d1f5adcc07959320 (diff) | |
Toggle full screen when double clicking the render window.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinWX/Src/Frame.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/DolphinWX/Src/FrameTools.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp index d390b8afcd..c26b28b1a7 100644 --- a/Source/Core/DolphinWX/Src/Frame.cpp +++ b/Source/Core/DolphinWX/Src/Frame.cpp @@ -1004,6 +1004,8 @@ void CFrame::OnMouse(wxMouseEvent& event) event.GetPosition().x, event.GetPosition().y, event.ButtonDown()); } #endif + if (event.LeftDClick()) + DoFullscreen(!RendererIsFullscreen()); event.Skip(); } diff --git a/Source/Core/DolphinWX/Src/FrameTools.cpp b/Source/Core/DolphinWX/Src/FrameTools.cpp index 4d66d82b18..567c614304 100644 --- a/Source/Core/DolphinWX/Src/FrameTools.cpp +++ b/Source/Core/DolphinWX/Src/FrameTools.cpp @@ -913,6 +913,7 @@ void CFrame::StartGame(const std::string& filename) wxTheApp->Bind(wxEVT_RIGHT_UP, &CFrame::OnMouse, this); wxTheApp->Bind(wxEVT_MIDDLE_DOWN, &CFrame::OnMouse, this); wxTheApp->Bind(wxEVT_MIDDLE_UP, &CFrame::OnMouse, this); + m_RenderParent->Bind(wxEVT_LEFT_DCLICK, &CFrame::OnMouse, this); wxTheApp->Bind(wxEVT_MOTION, &CFrame::OnMouse, this); m_RenderParent->Bind(wxEVT_SIZE, &CFrame::OnRenderParentResize, this); } |
