From e4d35f617096d0cb0beb89457a44048097380fd8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 5 Sep 2002 13:13:01 +0000 Subject: made it move really smooth again and extended the X axis sine table git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2185 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/bounce.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/recorder/bounce.c b/apps/recorder/bounce.c index e07b2d9..bb238ff 100644 --- a/apps/recorder/bounce.c +++ b/apps/recorder/bounce.c @@ -39,7 +39,7 @@ unsigned char table[]={ }; unsigned char xtable[]={ -54,59,64,69,73,77,81,85,88,91,94,96,97,99,99,99,99,99,97,96,94,91,88,85,81,77,73,69,64,59,54,50,45,40,35,30,26,22,18,14,11,8,5,3,2,0,0,0,0,0,2,3,5,8,11,14,18,22,26,30,35,40,45,49, +54,58,63,67,71,75,79,82,85,88,91,93,95,97,98,99,99,99,99,99,97,96,94,92,90,87,84,80,77,73,69,65,60,56,52,47,43,39,34,30,26,22,19,15,12,9,7,5,3,2,0,0,0,0,0,1,2,4,6,8,11,14,17,20,24,28,32,36,41,45,49 }; #define XDIFF -4 @@ -66,16 +66,13 @@ static void loopit(void) lcd_clear_display(); y++; - y += (y%13)?1:2; - x++; - x += (x%17)?0:1; yy=y; xx=x; for(i=0; i