From 747bba530c7f6271bf56f6e8d3f815e668f4c4cf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 22 Sep 2005 10:56:42 +0000 Subject: Credit scroll speed as sine wave in an attempt to beome more readable on the blurry iriver LCD. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7536 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/credits.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'apps/plugins') diff --git a/apps/plugins/credits.c b/apps/plugins/credits.c index f172cc6c18..629576d068 100644 --- a/apps/plugins/credits.c +++ b/apps/plugins/credits.c @@ -109,6 +109,14 @@ void roll_credits(void) } #else +static int minisin[]={ +#if 1 + 1, 2, 2, 3, 3, 3, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0 +#else + 1, 2, 3, 4, 4, 4, 3, 2, 1, 0, 0, -1, -1, -1, 0, 0, +#endif +}; + void roll_credits(void) { int i; @@ -120,6 +128,7 @@ void roll_credits(void) int height; int width; + int sinstep=0; rb->lcd_setfont(FONT_UI); @@ -140,7 +149,9 @@ void roll_credits(void) if (rb->button_get_w_tmo(HZ/20) & BUTTON_REL) return; - y--; + y-= minisin[sinstep]; + sinstep++; + sinstep &= 0x0f; /* wrap */ if(y<0) { line++; -- cgit v1.2.3