Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Toggle full screen when double clicking the render window.
  • Loading branch information
RachelBryk committed Jan 31, 2013
1 parent 0ffdd26 commit de27f0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/DolphinWX/Src/Frame.cpp
Expand Up @@ -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();
}

Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinWX/Src/FrameTools.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit de27f0b

Please sign in to comment.