diff options
author | Greg White <gwhite@rockbox.org> | 2007-01-14 03:30:11 +0000 |
---|---|---|
committer | Greg White <gwhite@rockbox.org> | 2007-01-14 03:30:11 +0000 |
commit | 382b7a4f8642abb2ef4848e08d211009cf7750d5 (patch) | |
tree | fea1133b38ee22560526625c74a07c402256e27a /firmware | |
parent | 0262cba304a47d9dc689bfbd3538b4b41c5b21c5 (diff) |
Skip scroll check when LCD is disabled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12004 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/lcd-16bit.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c index 024386e4e5..b8075b216b 100644 --- a/firmware/drivers/lcd-16bit.c +++ b/firmware/drivers/lcd-16bit.c @@ -81,10 +81,10 @@ static const char scroll_tick_table[16] = { /* LCD init */ void lcd_init(void) { - lcd_clear_display(); + lcd_clear_display(); - /* Call device specific init */ - lcd_init_device(); + /* Call device specific init */ + lcd_init_device(); create_thread(scroll_thread, scroll_stack, @@ -220,7 +220,7 @@ void lcd_set_backdrop(fb_data* backdrop) lcd_backdrop_offset = 0; lcd_fastpixelfuncs = lcd_fastpixelfuncs_bgcolor; } - lcd_device_prepare_backdrop(backdrop); + lcd_device_prepare_backdrop(backdrop); } fb_data* lcd_get_backdrop(void) @@ -938,6 +938,10 @@ static void scroll_thread(void) scrolling_lines = 0; while ( 1 ) { + if(!lcd_enabled()) { + sleep(scroll_ticks); + continue; + } for ( index = 0; index < SCROLLABLE_LINES; index++ ) { /* really scroll? */ if ( !(scrolling_lines&(1<<index)) ) |