GUI: clamp channel volume bar

issue #2568
This commit is contained in:
tildearrow 2025-06-18 03:37:36 -05:00
parent e23f1700a3
commit e90b05ae36

View file

@ -929,6 +929,11 @@ void FurnaceGUI::drawPattern() {
break;
}
if (xLeft<0.0f) xLeft=0.0f;
if (xLeft>1.0f) xLeft=1.0f;
if (xRight<0.0f) xRight=0.0f;
if (xRight>1.0f) xRight=1.0f;
dl->AddRectFilled(
ImLerp(rectV.Min,rectV.Max,ImVec2(xLeft,0.0f)),
ImLerp(rectV.Min,rectV.Max,ImVec2(xRight,1.0f)),