From 6f79d250ca65d858d68e13bdb5220aa70336a04f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 13 Aug 2002 15:01:59 +0000 Subject: made the movement a bit slower to appear smoother git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1714 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/bounce.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'apps/recorder') 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) int yy,xx; unsigned int i; - char rock[]={'R', 'O', 'C', 'K', 'b', 'o', 'x'}; + char rock[]="ROCKbox"; lcd_clear_display(); while(1) @@ -62,23 +62,17 @@ static void loopit(void) b = button_get(false); if ( b & BUTTON_OFF ) return; -#if 1 + lcd_clear_display(); -#else - lcd_clearrect(xtable[x&63], table[y&63], 11, 16); - lcd_clearrect(xtable[(x+XDIFF)&63], table[(y+YDIFF)&63], 11, 16); - lcd_clearrect(xtable[(x+XDIFF*2)&63], table[(y+YDIFF*2)&63], 11, 16); - lcd_clearrect(xtable[(x+XDIFF*3)&63], table[(y+YDIFF*3)&63], 11, 16); - lcd_clearrect(xtable[(x+XDIFF*4)&63], table[(y+YDIFF*4)&63], 11, 16); - lcd_clearrect(xtable[(x+XDIFF*5)&63], table[(y+YDIFF*5)&63], 11, 16); - lcd_clearrect(xtable[(x+XDIFF*6)&63], table[(y+YDIFF*6)&63], 11, 16); -#endif - y+=3; + y++; + y += (y%13)?1:2; + x++; + x += (x%17)?0:1; yy=y; xx=x; - for(i=0; i