diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-09-22 10:56:42 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-09-22 10:56:42 +0000 |
commit | 747bba530c7f6271bf56f6e8d3f815e668f4c4cf (patch) | |
tree | 626315b8658e57b6f527103ad8b4e5c2ae9668cf /apps/plugins/credits.c | |
parent | 267d8a7461e228ed9ad28547381d8a0d3568a6a8 (diff) |
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
Diffstat (limited to 'apps/plugins/credits.c')
-rw-r--r-- | apps/plugins/credits.c | 13 |
1 files changed, 12 insertions, 1 deletions
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++; |