| 1730 | } |
| 1731 | |
| 1732 | void 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 | |
| 1749 | void CMainFrame::OnUpdateTempoEdit(CCmdUI *pCmdUI) |
| 1750 | { |
nothing calls this directly
no test coverage detected