From a8e89fd693038bc073170b3f390ef44ddb136827 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 22 Aug 2002 21:45:22 +0000 Subject: when we want to stop the scroll and clear the screen, it is a lot better to first pause the scroll (stop puts back text on screen) and then clear the screen. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1931 a1c6a512-1295-4272-9138-f99709370657 --- apps/menu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/menu.c b/apps/menu.c index 93e8394011..79919f19af 100644 --- a/apps/menu.c +++ b/apps/menu.c @@ -113,8 +113,8 @@ static void menu_draw(int m) int menu_lines = MENU_LINES; #endif - lcd_clear_display(); - lcd_stop_scroll(); + lcd_scroll_pause(); /* halt scroll first... */ + lcd_clear_display(); /* ...then clean the screen */ #ifdef HAVE_LCD_BITMAP if(global_settings.statusbar) lcd_setmargins(0, STATUSBAR_HEIGHT); @@ -248,7 +248,8 @@ void menu_run(int m) #endif case BUTTON_PLAY: /* Erase current display state */ - lcd_stop_scroll(); + lcd_scroll_pause(); /* pause is better than stop when + are gonna clear the screen anyway */ lcd_clear_display(); menus[m].items[menus[m].cursor].function(); -- cgit v1.2.3