summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-charcell.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-03-31 12:42:12 +0000
committerJens Arnold <amiconn@rockbox.org>2007-03-31 12:42:12 +0000
commita8aec35d0a13c0d587e0615ca1e06aa79e4bc89a (patch)
treeaac958c6ebcdd2a8d985511eb57555bd97a82f74 /firmware/drivers/lcd-charcell.c
parent81625742c934c895958b91ee197b505a05c4c53c (diff)
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
Diffstat (limited to 'firmware/drivers/lcd-charcell.c')
-rw-r--r--firmware/drivers/lcd-charcell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-charcell.c b/firmware/drivers/lcd-charcell.c
index 5ddef99655..4d8a693e1f 100644
--- a/firmware/drivers/lcd-charcell.c
+++ b/firmware/drivers/lcd-charcell.c
@@ -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;