diff options
| author | Rachel Bryk <RachelBryk@gmail.com> | 2014-09-30 18:49:44 -0400 |
|---|---|---|
| committer | Rachel Bryk <RachelBryk@gmail.com> | 2014-09-30 18:49:44 -0400 |
| commit | f6c6f03cce4223e4b24adf49c918111d7e46c4ee (patch) | |
| tree | 0950962af5d21feb1d9a095612e20ddfacd381d9 /Source/Core/DolphinWX/FrameTools.cpp | |
| parent | 13fc8e7df135e3a0c9298bb4b6ecaf6f0bacf087 (diff) | |
Add on screen frame counter.
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 0d62bd5b53..94db9866b0 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -213,6 +213,8 @@ wxMenuBar* CFrame::CreateMenu() movieMenu->Check(IDM_TOGGLE_PAUSEMOVIE, SConfig::GetInstance().m_PauseMovie); movieMenu->AppendCheckItem(IDM_SHOWLAG, _("Show lag counter")); movieMenu->Check(IDM_SHOWLAG, SConfig::GetInstance().m_ShowLag); + movieMenu->AppendCheckItem(IDM_SHOWFRAMECOUNT, _("Show frame counter")); + movieMenu->Check(IDM_SHOWFRAMECOUNT, SConfig::GetInstance().m_ShowFrameCount); movieMenu->Check(IDM_RECORDREADONLY, true); menubar->Append(movieMenu, _("&Movie")); @@ -717,6 +719,12 @@ void CFrame::OnShowLag(wxCommandEvent& WXUNUSED (event)) SConfig::GetInstance().SaveSettings(); } +void CFrame::OnShowFrameCount(wxCommandEvent& WXUNUSED (event)) +{ + SConfig::GetInstance().m_ShowFrameCount = !SConfig::GetInstance().m_ShowFrameCount; + SConfig::GetInstance().SaveSettings(); +} + void CFrame::OnFrameStep(wxCommandEvent& event) { bool wasPaused = (Core::GetState() == Core::CORE_PAUSE); |
