From ce4325850553eef080be7ede373a4faef7c6a87f Mon Sep 17 00:00:00 2001 From: Eugene8388608 Date: Wed, 24 Nov 2021 00:53:59 +0300 Subject: [PATCH] Add files via upload --- colorchord2/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/colorchord2/main.c b/colorchord2/main.c index af1244f..9c23423 100644 --- a/colorchord2/main.c +++ b/colorchord2/main.c @@ -516,14 +516,14 @@ int main( int argc, char **argv ) CNFGColor( LINE_COLOR ); // Let's draw the o-scope. - int thissoundhead = ( soundhead - 1 + SOUNDCBSIZE ) % SOUNDCBSIZE; int lasty; + int thissoundhead = ( soundhead - 1 + SOUNDCBSIZE ) % SOUNDCBSIZE; int thisy = sound[ thissoundhead ] * -128 + 128; for ( int i = screenx - 1; i > 0; i-- ) { lasty = thisy; - thisy = sound[ thissoundhead ] * -128 + 128; thissoundhead = ( thissoundhead - 1 + SOUNDCBSIZE ) % SOUNDCBSIZE; + thisy = sound[ thissoundhead ] * -128 + 128; CNFGTackSegment( i, lasty, i - 1, thisy ); } }