- fixed source menu buttons hiding/showing.

This commit is contained in:
Fledge68 2022-06-15 06:24:56 -05:00
parent 5df5ccc2ee
commit 87b6379641
2 changed files with 4 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 4.4 MiB

View File

@ -331,12 +331,13 @@ void CMenu::_updateSourceBtns(void)
m_btnMgr.hide(m_sourceBtnPageP);
}
for(i = 0; i < 12; ++i)
m_btnMgr.hide(m_sourceBtnSource[i], true);
j = (curPage - 1) * 12;
for(i = 0; i < 12; ++i)
{
if((i + j) >= nonHiddenSources.size())
m_btnMgr.hide(m_sourceBtnSource[i]);
else
if((i + j) < nonHiddenSources.size())
{
memset(current_btn, 0, 16);
strncpy(current_btn, fmt("BUTTON_%i", nonHiddenSources[i + j]), 15);