From 7f5cdd6f6b0f541b6b6232ff3d8e2573e4555fa8 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 5 Jan 2023 03:36:09 -0500 Subject: [PATCH] GUI: vol meter fix --- src/gui/volMeter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/volMeter.cpp b/src/gui/volMeter.cpp index 5233a69e..f050341d 100644 --- a/src/gui/volMeter.cpp +++ b/src/gui/volMeter.cpp @@ -81,7 +81,7 @@ void FurnaceGUI::drawVolMeter() { ImLerp(rect.Min,rect.Max,ImVec2(float(i)/outChans,1.0-logPeak)), ImLerp(rect.Min,rect.Max,ImVec2(float(i+1)/outChans,1.0)) ); - if (i==(outChans-1)) s.Max.x-=dpiScale; + if (i!=(outChans-1)) s.Max.x-=dpiScale; if (isClipping) { dl->AddRectFilled(s.Min,s.Max,ImGui::GetColorU32(uiColors[GUI_COLOR_VOLMETER_PEAK])); } else {