summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-09-22 10:56:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-09-22 10:56:42 +0000
commit747bba530c7f6271bf56f6e8d3f815e668f4c4cf (patch)
tree626315b8658e57b6f527103ad8b4e5c2ae9668cf /apps/plugins
parent267d8a7461e228ed9ad28547381d8a0d3568a6a8 (diff)
downloadrockbox-747bba530c7f6271bf56f6e8d3f815e668f4c4cf.tar.gz
rockbox-747bba530c7f6271bf56f6e8d3f815e668f4c4cf.zip
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')
-rw-r--r--apps/plugins/credits.c13
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)
109} 109}
110#else 110#else
111 111
112static int minisin[]={
113#if 1
114 1, 2, 2, 3, 3, 3, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0
115#else
116 1, 2, 3, 4, 4, 4, 3, 2, 1, 0, 0, -1, -1, -1, 0, 0,
117#endif
118};
119
112void roll_credits(void) 120void roll_credits(void)
113{ 121{
114 int i; 122 int i;
@@ -120,6 +128,7 @@ void roll_credits(void)
120 128
121 int height; 129 int height;
122 int width; 130 int width;
131 int sinstep=0;
123 132
124 rb->lcd_setfont(FONT_UI); 133 rb->lcd_setfont(FONT_UI);
125 134
@@ -140,7 +149,9 @@ void roll_credits(void)
140 if (rb->button_get_w_tmo(HZ/20) & BUTTON_REL) 149 if (rb->button_get_w_tmo(HZ/20) & BUTTON_REL)
141 return; 150 return;
142 151
143 y--; 152 y-= minisin[sinstep];
153 sinstep++;
154 sinstep &= 0x0f; /* wrap */
144 155
145 if(y<0) { 156 if(y<0) {
146 line++; 157 line++;