summaryrefslogtreecommitdiff
path: root/apps/recorder/bounce.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/bounce.c')
-rw-r--r--apps/recorder/bounce.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/apps/recorder/bounce.c b/apps/recorder/bounce.c
index a2afe29430..6b500964f0 100644
--- a/apps/recorder/bounce.c
+++ b/apps/recorder/bounce.c
@@ -54,7 +54,7 @@ static void loopit(void)
54 int yy,xx; 54 int yy,xx;
55 unsigned int i; 55 unsigned int i;
56 56
57 char rock[]={'R', 'O', 'C', 'K', 'b', 'o', 'x'}; 57 char rock[]="ROCKbox";
58 58
59 lcd_clear_display(); 59 lcd_clear_display();
60 while(1) 60 while(1)
@@ -62,23 +62,17 @@ static void loopit(void)
62 b = button_get(false); 62 b = button_get(false);
63 if ( b & BUTTON_OFF ) 63 if ( b & BUTTON_OFF )
64 return; 64 return;
65#if 1 65
66 lcd_clear_display(); 66 lcd_clear_display();
67#else 67 y++;
68 lcd_clearrect(xtable[x&63], table[y&63], 11, 16); 68 y += (y%13)?1:2;
69 lcd_clearrect(xtable[(x+XDIFF)&63], table[(y+YDIFF)&63], 11, 16); 69
70 lcd_clearrect(xtable[(x+XDIFF*2)&63], table[(y+YDIFF*2)&63], 11, 16);
71 lcd_clearrect(xtable[(x+XDIFF*3)&63], table[(y+YDIFF*3)&63], 11, 16);
72 lcd_clearrect(xtable[(x+XDIFF*4)&63], table[(y+YDIFF*4)&63], 11, 16);
73 lcd_clearrect(xtable[(x+XDIFF*5)&63], table[(y+YDIFF*5)&63], 11, 16);
74 lcd_clearrect(xtable[(x+XDIFF*6)&63], table[(y+YDIFF*6)&63], 11, 16);
75#endif
76 y+=3;
77 x++; 70 x++;
71 x += (x%17)?0:1;
78 72
79 yy=y; 73 yy=y;
80 xx=x; 74 xx=x;
81 for(i=0; i<sizeof(rock)/sizeof(rock[0]); i++, yy+=YDIFF, xx+=XDIFF) 75 for(i=0; i<sizeof(rock)-1; i++, yy+=YDIFF, xx+=XDIFF)
82 lcd_bitmap((char *)char_gen_12x16[rock[i]-0x20], 76 lcd_bitmap((char *)char_gen_12x16[rock[i]-0x20],
83 xtable[xx&63], table[yy&63], 77 xtable[xx&63], table[yy&63],
84 11, 16, false); 78 11, 16, false);