1
0
Fork 0
forked from len0rd/rockbox

Player: Make cursor blinking rate almost independent from scroll speed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12981 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2007-03-31 12:42:12 +00:00
parent 81625742c9
commit a8aec35d0a

View file

@ -341,7 +341,7 @@ void lcd_put_cursor(int x, int y, unsigned long cursor_ucs)
lcd_cursor.x = x;
lcd_cursor.y = y;
lcd_cursor.downcount = 0;
lcd_cursor.divider = 4;
lcd_cursor.divider = MAX((HZ/2) / scroll_ticks, 1);
}
/* Remove the cursor */
@ -562,7 +562,7 @@ static void scroll_thread(void)
}
if (lcd_cursor.enabled)
{
if (--lcd_cursor.downcount < 0)
if (--lcd_cursor.downcount <= 0)
{
lcd_cursor.downcount = lcd_cursor.divider;
lcd_cursor.visible = !lcd_cursor.visible;