summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();