adjusted scope lerp

This commit is contained in:
Wirlaburla 2024-03-21 13:12:32 -05:00
parent a4e3734568
commit 05b44db876

View File

@ -614,7 +614,7 @@ void displayScope(xmp_module_info *mi, xmp_frame_info *fi) {
int horzInc = 1; int horzInc = 1;
for (int s = 0; s < fi->buffer_size; s++) { for (int s = 0; s < fi->buffer_size; s++) {
if (nxcol >= COLS-2) break; if (nxcol >= COLS-2) break;
int l = lerp(bufbuf[s], xbuf[s], 0.2f); int l = lerp(bufbuf[s], xbuf[s], 0.5f);
int newpos = ((l+0x80) * (LINES - 4)) / 0xFF; int newpos = ((l+0x80) * (LINES - 4)) / 0xFF;
horzInc = (newpos < midLine)?-1:1; horzInc = (newpos < midLine)?-1:1;
for (int j = midLine; j != newpos; j+=horzInc) { for (int j = midLine; j != newpos; j+=horzInc) {