diff --git a/src/gui/debugWindow.cpp b/src/gui/debugWindow.cpp index 447ea12d5..fd8920ae8 100644 --- a/src/gui/debugWindow.cpp +++ b/src/gui/debugWindow.cpp @@ -386,6 +386,33 @@ void FurnaceGUI::drawDebug() { ImGui::Text("System Managed Scale: %d",sysManagedScale); ImGui::TreePop(); } + if (ImGui::TreeNode("Visualizer Debug")) { + if (ImGui::BeginTable("visX",3,ImGuiTableFlags_Borders)) { + ImGui::TableNextRow(ImGuiTableRowFlags_Headers); + ImGui::TableNextColumn(); + ImGui::Text("channel"); + ImGui::TableNextColumn(); + ImGui::Text("patChanX"); + ImGui::TableNextColumn(); + ImGui::Text("patChanSlideY"); + + for (int i=0; igetTotalChannelCount(); i++) { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::Text("%d",i); + ImGui::TableNextColumn(); + ImGui::Text("%f",patChanX[i]); + ImGui::TableNextColumn(); + ImGui::Text("%f",patChanSlideY[i]); + } + + ImGui::EndTable(); + } + + ImGui::Text("particle count: %ld",particles.size()); + + ImGui::TreePop(); + } if (ImGui::TreeNode("Playground")) { if (pgSys<0 || pgSys>=e->song.systemLen) pgSys=0; if (ImGui::BeginCombo("Chip",fmt::sprintf("%d. %s",pgSys+1,e->getSystemName(e->song.system[pgSys])).c_str())) { diff --git a/src/gui/pattern.cpp b/src/gui/pattern.cpp index dbfee3026..51f34eb31 100644 --- a/src/gui/pattern.cpp +++ b/src/gui/pattern.cpp @@ -133,14 +133,14 @@ inline void FurnaceGUI::patternRow(int i, bool isPlaying, float lineHeight, int for (int j=0; j