diff --git a/src/gui/chanOsc.cpp b/src/gui/chanOsc.cpp index 84e0ebd38..cb76baf0a 100644 --- a/src/gui/chanOsc.cpp +++ b/src/gui/chanOsc.cpp @@ -728,14 +728,15 @@ void FurnaceGUI::drawChanOsc() { if (chanOscCenterStrat==0) { // DC correction off fft->dcOff=0; } else if (chanOscCenterStrat==1) { // normal DC correction - if (minLevel>y) minLevel=y; - if (maxLevely1) minLevel=y1; + if (maxLevelneedle; j!=((fft->needle+displaySize)&0xffff); j++) { const short y_s=buf->data[j]; if (y_s!=-1) { - y=(float)y_s/32768.0f; - if (minLevel>y) minLevel=y; - if (maxLevely1) minLevel=y1; + if (maxLeveldcOff=(minLevel+maxLevel)*0.5f;