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

Method Warp

Source/SelectionRange.cpp:127–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void CPatternIterator::Warp()
128{
129 if (m_iRow >= 0) {
130 while (true) {
131 if (int Length = song_view_.GetFrameLength(TranslateFrame()); m_iRow >= Length) {
132 m_iRow -= Length;
133 ++m_iFrame;
134 }
135 else
136 return;
137 }
138 }
139 else
140 while (m_iRow < 0) {
141 --m_iFrame;
142 m_iRow += song_view_.GetFrameLength(TranslateFrame());
143 }
144}
145
146
147/*

Callers

nothing calls this directly

Calls 1

GetFrameLengthMethod · 0.80

Tested by

no test coverage detected