Toggle full screen when double clicking the render window.
This commit is contained in:
parent
0ffdd2607f
commit
de27f0bea9
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue