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:
parent
81625742c9
commit
a8aec35d0a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue