GUI: fix curOrder when pat view is not visible
This commit is contained in:
parent
fe8f94b2b2
commit
d531b714a9
|
|
@ -4440,6 +4440,10 @@ bool FurnaceGUI::loop() {
|
||||||
|
|
||||||
MEASURE(calcChanOsc,calcChanOsc());
|
MEASURE(calcChanOsc,calcChanOsc());
|
||||||
|
|
||||||
|
if (followPattern) {
|
||||||
|
curOrder=e->getOrder();
|
||||||
|
}
|
||||||
|
|
||||||
if (mobileUI) {
|
if (mobileUI) {
|
||||||
globalWinFlags=ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoMove|ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoBringToFrontOnFocus;
|
globalWinFlags=ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoMove|ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoBringToFrontOnFocus;
|
||||||
//globalWinFlags=ImGuiWindowFlags_NoTitleBar;
|
//globalWinFlags=ImGuiWindowFlags_NoTitleBar;
|
||||||
|
|
|
||||||
|
|
@ -420,9 +420,6 @@ void FurnaceGUI::drawPattern() {
|
||||||
//char id[32];
|
//char id[32];
|
||||||
ImGui::PushFont(patFont);
|
ImGui::PushFont(patFont);
|
||||||
int ord=oldOrder;
|
int ord=oldOrder;
|
||||||
if (followPattern) {
|
|
||||||
curOrder=e->getOrder();
|
|
||||||
}
|
|
||||||
oldOrder=curOrder;
|
oldOrder=curOrder;
|
||||||
int chans=e->getTotalChannelCount();
|
int chans=e->getTotalChannelCount();
|
||||||
int displayChans=0;
|
int displayChans=0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue