GUI: fix BPM not considering time base

This commit is contained in:
tildearrow 2022-02-14 02:32:18 -05:00
parent bfb902f649
commit 6850daaca0

View file

@ -986,7 +986,9 @@ void FurnaceGUI::drawSongInfo() {
ImGui::TableNextColumn();
float hl=e->song.hilightA;
if (hl<=0.0f) hl=4.0f;
ImGui::Text("%.2f BPM",120.0f*(float)e->song.hz/(hl*(float)(e->song.speed1+e->song.speed2)));
float timeBase=e->song.timeBase+1;
if (timeBase<1.0f) timeBase=1.0f;
ImGui::Text("%.2f BPM",120.0f*(float)e->song.hz/(timeBase*hl*(float)(e->song.speed1+e->song.speed2)));
ImGui::TableNextRow();
ImGui::TableNextColumn();