GUI: add option to view Hz as base tempo
This commit is contained in:
parent
790c4345d9
commit
492533e5c0
|
@ -1096,13 +1096,18 @@ void FurnaceGUI::drawSongInfo() {
|
||||||
if (setHz>999) setHz=999;
|
if (setHz>999) setHz=999;
|
||||||
e->setSongRate(setHz,setHz<52);
|
e->setSongRate(setHz,setHz<52);
|
||||||
}
|
}
|
||||||
if (e->song.hz>=49.98 && e->song.hz<=50.02) {
|
if (tempoView) {
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::Text("PAL");
|
ImGui::Text("= %gHz",e->song.hz);
|
||||||
}
|
} else {
|
||||||
if (e->song.hz>=59.9 && e->song.hz<=60.11) {
|
if (e->song.hz>=49.98 && e->song.hz<=50.02) {
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::Text("NTSC");
|
ImGui::Text("PAL");
|
||||||
|
}
|
||||||
|
if (e->song.hz>=59.9 && e->song.hz<=60.11) {
|
||||||
|
ImGui::TableNextColumn();
|
||||||
|
ImGui::Text("NTSC");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
|
@ -6861,6 +6866,8 @@ bool FurnaceGUI::init() {
|
||||||
channelsOpen=e->getConfBool("channelsOpen",false);
|
channelsOpen=e->getConfBool("channelsOpen",false);
|
||||||
regViewOpen=e->getConfBool("regViewOpen",false);
|
regViewOpen=e->getConfBool("regViewOpen",false);
|
||||||
|
|
||||||
|
tempoView=e->getConfBool("tempoView",true);
|
||||||
|
|
||||||
syncSettings();
|
syncSettings();
|
||||||
|
|
||||||
if (settings.dpiScale>=0.5f) {
|
if (settings.dpiScale>=0.5f) {
|
||||||
|
@ -7029,6 +7036,8 @@ bool FurnaceGUI::finish() {
|
||||||
e->setConf("lastWindowWidth",scrW);
|
e->setConf("lastWindowWidth",scrW);
|
||||||
e->setConf("lastWindowHeight",scrH);
|
e->setConf("lastWindowHeight",scrH);
|
||||||
|
|
||||||
|
e->setConf("tempoView",tempoView);
|
||||||
|
|
||||||
for (int i=0; i<DIV_MAX_CHANS; i++) {
|
for (int i=0; i<DIV_MAX_CHANS; i++) {
|
||||||
delete oldPat[i];
|
delete oldPat[i];
|
||||||
}
|
}
|
||||||
|
@ -7108,7 +7117,7 @@ FurnaceGUI::FurnaceGUI():
|
||||||
fancyPattern(false),
|
fancyPattern(false),
|
||||||
wantPatName(false),
|
wantPatName(false),
|
||||||
firstFrame(true),
|
firstFrame(true),
|
||||||
tempoView(false),
|
tempoView(true),
|
||||||
curWindow(GUI_WINDOW_NOTHING),
|
curWindow(GUI_WINDOW_NOTHING),
|
||||||
nextWindow(GUI_WINDOW_NOTHING),
|
nextWindow(GUI_WINDOW_NOTHING),
|
||||||
nextDesc(NULL),
|
nextDesc(NULL),
|
||||||
|
|
Loading…
Reference in New Issue