remove scope shadow

This commit is contained in:
Wirlaburla 2024-04-24 13:44:10 -05:00
parent a745768f9b
commit 27d3e61d59

View File

@ -643,17 +643,17 @@ void displayScope(xmp_module_info *mi, xmp_frame_info *fi) {
for (int v = 0; v < percol; v++) { for (int v = 0; v < percol; v++) {
colsum += xbuf[(s*percol)+v]; colsum += xbuf[(s*percol)+v];
} }
int l = lerp(bufbuf[s], (colsum / percol)*2, 0.8f); int l = (colsum / percol)*2;
if (l >= 0x80) l = 0x80; if (l >= 0x80) l = 0x80;
else if (l <= -0x80) l = -0x80; else if (l <= -0x80) l = -0x80;
int r = (1.0*(l+0x80)/0xFF)*(LINES-4); int r = (1.0*(l+0x80)/0xFF)*(LINES-4);
for (int j = l; j != bufbuf[s]; j+=(bufbuf[s]>l?1:-1)) { for (int j = 0; j != l; j+=(l>0?1:-1)) {
wmove(dis, (1.0*(j+0x80)/0xFF)*(LINES-4), s); wmove(dis, (1.0*(j+0x80)/0xFF)*(LINES-4), s);
waddch(dis, '|'); waddch(dis, '#');
} }
wmove(dis, r, s); wmove(dis, r, s);
waddch(dis, '+'); waddch(dis, '=');
bufbuf[s] = l; bufbuf[s] = l;
} }