From 2a5712238b039bc3a5e41d988900b30d3bd608b0 Mon Sep 17 00:00:00 2001 From: Justin Heiner Date: Fri, 9 Aug 2002 19:17:14 +0000 Subject: [PATCH] Added lcd_scroll_pause/resume git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1649 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd.c | 10 ++++++++++ firmware/drivers/lcd.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index c343561543..a9cd8c65ac 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c @@ -1159,6 +1159,16 @@ void lcd_stop_scroll(void) } } +void lcd_scroll_pause(void) +{ + scroll_count = 0; +} + +void lcd_scroll_resume(void) +{ + scroll_count = 1; +} + void lcd_scroll_speed(int speed) { scroll_speed = speed; diff --git a/firmware/drivers/lcd.h b/firmware/drivers/lcd.h index 21e1275284..bc971dc117 100644 --- a/firmware/drivers/lcd.h +++ b/firmware/drivers/lcd.h @@ -29,6 +29,8 @@ extern void lcd_init(void); extern void lcd_clear_display(void); extern void lcd_backlight(bool on); extern void lcd_puts(int x, int y, unsigned char *string); +extern void lcd_scroll_pause(void); +extern void lcd_scroll_resume(void); extern void lcd_puts_scroll(int x, int y, unsigned char* string ); extern void lcd_icon(int icon, bool enable); extern void lcd_stop_scroll(void);