mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 13:05:11 +00:00
GUI: fix BPM not considering time base
This commit is contained in:
parent
bfb902f649
commit
6850daaca0
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue