mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-30 16:33:01 +00:00
GUI: fix visual glitch when changing song length
This commit is contained in:
parent
92c1add075
commit
f92eb9352d
1 changed files with 3 additions and 0 deletions
|
@ -124,6 +124,9 @@ void FurnaceGUI::drawSongInfo() {
|
|||
if (ordLen<1) ordLen=1;
|
||||
if (ordLen>127) ordLen=127;
|
||||
e->song.ordersLen=ordLen;
|
||||
if (e->getOrder()>=ordLen) {
|
||||
e->setOrder(ordLen-1);
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::TableNextRow();
|
||||
|
|
Loading…
Reference in a new issue