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

Method GetCurrentPatternLength

Source/PatternEditor.cpp:3168–3174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3166// Other ////////////////////////////////////////////////////////////////////////////////////////////////////
3167
3168int CPatternEditor::GetCurrentPatternLength(int Frame) const // // //
3169{
3170 CSongView *pSongView = m_pView->GetSongView(); // // //
3171 int Frames = pSongView->GetSong().GetFrameCount();
3172 int f = Frame % Frames;
3173 return pSongView->GetFrameLength(f < 0 ? f + Frames : f);
3174}
3175
3176void CPatternEditor::SetHighlight(const stHighlight &Hl) // // //
3177{

Callers 3

SetTargetSelectionMethod · 0.80
SaveStateMethod · 0.80
RedoMethod · 0.80

Calls 4

GetSongViewMethod · 0.80
GetSongMethod · 0.80
GetFrameLengthMethod · 0.80
GetFrameCountMethod · 0.45

Tested by

no test coverage detected