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

Method SetRowCount

Source/MainFrm.cpp:823–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821}
822
823void CMainFrame::SetRowCount(int Count)
824{
825 if (!GetDoc().IsFileLoaded())
826 return;
827
828 Count = std::clamp(Count, 1, MAX_PATTERN_LENGTH); // // //
829 if (AddAction(std::make_unique<CPActionPatternLen>(Count))) // // //
830 if (m_wndDialogBar.GetDlgItemInt(IDC_ROWS) != Count)
831 m_wndDialogBar.SetDlgItemInt(IDC_ROWS, Count, FALSE);
832}
833
834void CMainFrame::SetFrameCount(int Count)
835{

Callers

nothing calls this directly

Calls 2

clampFunction · 0.85
IsFileLoadedMethod · 0.45

Tested by

no test coverage detected