summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-05 13:13:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-05 13:13:01 +0000
commite4d35f617096d0cb0beb89457a44048097380fd8 (patch)
treef3098fdd333c16d6a9e27e896385e88d3bcaf276 /apps
parent31a5607e8c941870725de4df582a7d902b1390b4 (diff)
downloadrockbox-e4d35f617096d0cb0beb89457a44048097380fd8.tar.gz
rockbox-e4d35f617096d0cb0beb89457a44048097380fd8.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/bounce.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/recorder/bounce.c b/apps/recorder/bounce.c
index e07b2d9df7..bb238ff09e 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<sizeof(rock)-1; i++, yy+=YDIFF, xx+=XDIFF)
lcd_bitmap((char *)char_gen_12x16[rock[i]-0x20],
- xtable[xx&63], table[yy&63],
+ xtable[xx%71], table[yy&63],
11, 16, false);
lcd_update();