hopefully fix oscilloscope line being out of bound

This commit is contained in:
tildearrow 2022-04-14 23:22:25 -05:00
parent aa415caa57
commit 51bc1119e8
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ void FurnaceGUI::drawOsc() {
float y=oscValues[i]*oscZoom;
if (y<-0.5f) y=-0.5f;
if (y>0.5f) y=0.5f;
waveform[i]=ImLerp(rect.Min,rect.Max,ImVec2(x,0.5f-y));
waveform[i]=ImLerp(inRect.Min,inRect.Max,ImVec2(x,0.5f-y));
}
dl->AddPolyline(waveform,512,color,ImDrawFlags_None,dpiScale);
if (settings.oscBorder) {