From de27f0bea9ff541fddfea8a875b15372d6420f8d Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Thu, 31 Jan 2013 03:51:29 -0500 Subject: [PATCH] Toggle full screen when double clicking the render window. --- Source/Core/DolphinWX/Src/Frame.cpp | 2 ++ Source/Core/DolphinWX/Src/FrameTools.cpp | 1 + 2 files changed, 3 insertions(+) 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); }