diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 352c7330a..669db1452 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1084,11 +1084,14 @@ void FurnaceGUI::drawSongInfo() { ImGui::TableNextRow(); ImGui::TableNextColumn(); - ImGui::Text("Tick Rate"); + if (ImGui::Selectable(tempoView?"Base Tempo##TempoOrHz":"Tick Rate##TempoOrHz")) { + tempoView=!tempoView; + } ImGui::TableNextColumn(); ImGui::SetNextItemWidth(avail); - float setHz=e->song.hz; + float setHz=tempoView?e->song.hz*2.5:e->song.hz; if (ImGui::InputFloat("##Rate",&setHz,1.0f,1.0f,"%g")) { + if (tempoView) setHz/=2.5; if (setHz<10) setHz=10; if (setHz>999) setHz=999; e->setSongRate(setHz,setHz<52); @@ -7105,6 +7108,7 @@ FurnaceGUI::FurnaceGUI(): fancyPattern(false), wantPatName(false), firstFrame(true), + tempoView(false), curWindow(GUI_WINDOW_NOTHING), nextWindow(GUI_WINDOW_NOTHING), nextDesc(NULL), diff --git a/src/gui/gui.h b/src/gui/gui.h index 722554403..2c0a3a630 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -604,7 +604,7 @@ class FurnaceGUI { bool pianoOpen, notesOpen, channelsOpen, regViewOpen; SelectionPoint selStart, selEnd, cursor; bool selecting, curNibble, orderNibble, followOrders, followPattern, changeAllOrders; - bool collapseWindow, demandScrollX, fancyPattern, wantPatName, firstFrame; + bool collapseWindow, demandScrollX, fancyPattern, wantPatName, firstFrame, tempoView; FurnaceGUIWindows curWindow, nextWindow; float peak[2]; float patChanX[DIV_MAX_CHANS+1];