From a02ffd5afaa7a1a82f2da572b4c3cea01782b7c5 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 30 Oct 2002 23:01:27 +0000 Subject: Some peak meter optimizations git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2784 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd-recorder.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'firmware/drivers/lcd-recorder.c') diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c index 10071dc3d7..16729464fc 100644 --- a/firmware/drivers/lcd-recorder.c +++ b/firmware/drivers/lcd-recorder.c @@ -823,7 +823,6 @@ static void scroll_thread(void) int index; int w, h; int xpos, ypos; - bool update; /* initialize scroll struct array */ for (index = 0; index < SCROLLABLE_LINES; index++) { @@ -834,15 +833,12 @@ static void scroll_thread(void) while ( 1 ) { - update = false; - /* wait 0.5s before starting scroll */ if ( TIME_AFTER(current_tick, scroll_start_tick) ) { for ( index = 0; index < SCROLLABLE_LINES; index++ ) { s = &scroll[index]; if ( s->mode == SCROLL_MODE_RUN ) { - update = true; s->offset += scroll_step; @@ -855,12 +851,9 @@ static void scroll_thread(void) lcd_clearrect(xpos, ypos, LCD_WIDTH - xmargin, h); lcd_putsxyofs(xpos, ypos, s->offset, s->line); + lcd_update_rect(xpos, ypos, LCD_WIDTH - xmargin, h); } } - - if (update) { - lcd_update(); - } } sleep(HZ/scroll_speed); -- cgit v1.2.3