diff options
-rw-r--r-- | apps/recorder/bounce.c | 7 |
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[]={ | |||
39 | }; | 39 | }; |
40 | 40 | ||
41 | unsigned char xtable[]={ | 41 | unsigned char xtable[]={ |
42 | 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, | 42 | 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 |
43 | }; | 43 | }; |
44 | 44 | ||
45 | #define XDIFF -4 | 45 | #define XDIFF -4 |
@@ -66,16 +66,13 @@ static void loopit(void) | |||
66 | 66 | ||
67 | lcd_clear_display(); | 67 | lcd_clear_display(); |
68 | y++; | 68 | y++; |
69 | y += (y%13)?1:2; | ||
70 | |||
71 | x++; | 69 | x++; |
72 | x += (x%17)?0:1; | ||
73 | 70 | ||
74 | yy=y; | 71 | yy=y; |
75 | xx=x; | 72 | xx=x; |
76 | for(i=0; i<sizeof(rock)-1; i++, yy+=YDIFF, xx+=XDIFF) | 73 | for(i=0; i<sizeof(rock)-1; i++, yy+=YDIFF, xx+=XDIFF) |
77 | lcd_bitmap((char *)char_gen_12x16[rock[i]-0x20], | 74 | lcd_bitmap((char *)char_gen_12x16[rock[i]-0x20], |
78 | xtable[xx&63], table[yy&63], | 75 | xtable[xx%71], table[yy&63], |
79 | 11, 16, false); | 76 | 11, 16, false); |
80 | lcd_update(); | 77 | lcd_update(); |
81 | 78 | ||