diff options
| author | skidau <skidau@gmail.com> | 2014-10-03 13:31:52 +1000 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2014-10-03 13:31:52 +1000 |
| commit | 16d3604211fd9999eb07426f2ba69c51a46e8238 (patch) | |
| tree | 9138452f7392ecac97d62bd275801801abc5b4ff /Source/Core/DolphinWX/FrameTools.cpp | |
| parent | 6333f4183791b69d83e0ab2c12a03cbf42b73110 (diff) | |
| parent | f6c6f03cce4223e4b24adf49c918111d7e46c4ee (diff) | |
Merge pull request #1196 from RachelBryk/framecount
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); |
