| 1322 | } |
| 1323 | |
| 1324 | bool CFamiTrackerView::IsMarkerValid() const // // // |
| 1325 | { |
| 1326 | if (m_iMarkerFrame < 0 || m_iMarkerRow < 0) |
| 1327 | return false; |
| 1328 | |
| 1329 | const CConstSongView *pSongView = GetSongView(); |
| 1330 | |
| 1331 | if (m_iMarkerFrame >= static_cast<int>(pSongView->GetSong().GetFrameCount())) |
| 1332 | return false; |
| 1333 | if (m_iMarkerRow >= (int)pSongView->GetFrameLength(m_iMarkerFrame)) |
| 1334 | return false; |
| 1335 | return true; |
| 1336 | } |
| 1337 | |
| 1338 | //////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 1339 | // Tracker playing routines |
no test coverage detected