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

Method PasteSelection

Source/FrameEditorModel.cpp:158–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void CFrameEditorModel::PasteSelection(const CFrameClipData &clipdata, const CFrameCursorPos &pos) {
159 CFrameIterator it {*view_->GetSongView(), pos};
160 for (int f = 0; f < clipdata.ClipInfo.Frames; ++f) {
161 for (int c = 0; c < clipdata.ClipInfo.Channels; ++c)
162 it.Set(c + /*it.m_iChannel*/ clipdata.ClipInfo.FirstChannel, clipdata.GetFrame(f, c));
163 ++it;
164 if (it.m_iFrame == 0)
165 break;
166 }
167}

Callers 1

PasteAtMethod · 0.80

Calls 3

GetSongViewMethod · 0.80
SetMethod · 0.45
GetFrameMethod · 0.45

Tested by

no test coverage detected