mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
hopefully fix oscilloscope line being out of bound
This commit is contained in:
parent
aa415caa57
commit
51bc1119e8
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue