From 51bc1119e88bb6e6a2192df82f35fd58e4539b24 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 14 Apr 2022 23:22:25 -0500 Subject: [PATCH] hopefully fix oscilloscope line being out of bound --- src/gui/osc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/osc.cpp b/src/gui/osc.cpp index 0119232d4..266dfa3bf 100644 --- a/src/gui/osc.cpp +++ b/src/gui/osc.cpp @@ -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) {