MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnUpdateSpeedEdit

Method OnUpdateSpeedEdit

Source/MainFrm.cpp:1732–1747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1730}
1731
1732void CMainFrame::OnUpdateSpeedEdit(CCmdUI *pCmdUI)
1733{
1734 if (!m_cLockedEditSpeed.IsEditable()) {
1735 const CSongData &song = *GetCurrentSong(); // // //
1736 if (m_cLockedEditSpeed.Update()) {
1737 int idx = m_cLockedEditSpeed.GetValue();
1738 if (song.GetSongGroove() && GetDoc().GetModule()->HasGroove(idx))
1739 SetGroove(idx);
1740 else
1741 SetSpeed(idx);
1742 }
1743 else {
1744 pCmdUI->SetText(FormattedW(L"%i", song.GetSongSpeed())); // // //
1745 }
1746 }
1747}
1748
1749void CMainFrame::OnUpdateTempoEdit(CCmdUI *pCmdUI)
1750{

Callers

nothing calls this directly

Calls 8

FormattedWFunction · 0.85
IsEditableMethod · 0.80
GetSongGrooveMethod · 0.80
HasGrooveMethod · 0.80
GetModuleMethod · 0.80
GetSongSpeedMethod · 0.80
UpdateMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected