GUI: use DeltaTime for soloTimeout

issue #846
This commit is contained in:
tildearrow 2023-01-14 13:51:02 -05:00
parent ed11b6cf78
commit 26e424fe9f
2 changed files with 9 additions and 3 deletions

View file

@ -5148,7 +5148,12 @@ bool FurnaceGUI::loop() {
renderTimeDelta=renderTimeEnd-renderTimeBegin;
eventTimeDelta=eventTimeEnd-eventTimeBegin;
if (--soloTimeout<0) soloTimeout=0;
soloTimeout-=ImGui::GetIO().DeltaTime*60.0f;
if (soloTimeout<0) {
soloTimeout=0;
} else {
WAKE_UP;
}
wheelX=0;
wheelY=0;
@ -5784,7 +5789,6 @@ FurnaceGUI::FurnaceGUI():
editStep(1),
exportLoops(0),
soloChan(-1),
soloTimeout(0),
orderEditMode(0),
orderCursor(-1),
loopOrder(-1),
@ -5803,6 +5807,7 @@ FurnaceGUI::FurnaceGUI():
dragDestinationY(0),
oldBeat(-1),
oldBar(-1),
soloTimeout(0.0f),
exportFadeOut(5.0),
editControlsOpen(true),
ordersOpen(true),