From 2e5188884c042103439e6ca1e89d3265e1b73a34 Mon Sep 17 00:00:00 2001 From: Eknous-P Date: Thu, 21 Mar 2024 14:17:27 +0400 Subject: [PATCH] smaller --- src/gui/sysManager.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gui/sysManager.cpp b/src/gui/sysManager.cpp index a747ae9b5..f55233770 100644 --- a/src/gui/sysManager.cpp +++ b/src/gui/sysManager.cpp @@ -24,15 +24,12 @@ #include void FurnaceGUI::drawSystemChannelInfo(const DivSysDef* whichDef) { - for (int i=0; ichannels-1; i++) { + for (int i=0; ichannels; i++) { ImGui::PushStyleColor(ImGuiCol_Button,ImGui::GetColorU32(uiColors[whichDef->chanTypes[i]+GUI_COLOR_CHANNEL_FM])); ImGui::SmallButton("##ChanTypeColorThing"); - ImGui::SameLine(); + if (ichannels-1) ImGui::SameLine(); ImGui::PopStyleColor(); } - ImGui::PushStyleColor(ImGuiCol_Button,ImGui::GetColorU32(uiColors[whichDef->chanTypes[whichDef->channels-1]+GUI_COLOR_CHANNEL_FM])); - ImGui::SmallButton("##ChanTypeColorThing"); - ImGui::PopStyleColor(); // so we don't get an extra sameline } void FurnaceGUI::drawSysManager() {