summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-22 21:45:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-22 21:45:22 +0000
commita8e89fd693038bc073170b3f390ef44ddb136827 (patch)
tree708eb72fb0cb12367a83e2b794bc0d327194247d /apps
parent3da55ac420f59ad571eafa43097feabaf6d78c31 (diff)
downloadrockbox-a8e89fd693038bc073170b3f390ef44ddb136827.tar.gz
rockbox-a8e89fd693038bc073170b3f390ef44ddb136827.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/menu.c7
1 files changed, 4 insertions, 3 deletions
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)
113 int menu_lines = MENU_LINES; 113 int menu_lines = MENU_LINES;
114#endif 114#endif
115 115
116 lcd_clear_display(); 116 lcd_scroll_pause(); /* halt scroll first... */
117 lcd_stop_scroll(); 117 lcd_clear_display(); /* ...then clean the screen */
118#ifdef HAVE_LCD_BITMAP 118#ifdef HAVE_LCD_BITMAP
119 if(global_settings.statusbar) 119 if(global_settings.statusbar)
120 lcd_setmargins(0, STATUSBAR_HEIGHT); 120 lcd_setmargins(0, STATUSBAR_HEIGHT);
@@ -248,7 +248,8 @@ void menu_run(int m)
248#endif 248#endif
249 case BUTTON_PLAY: 249 case BUTTON_PLAY:
250 /* Erase current display state */ 250 /* Erase current display state */
251 lcd_stop_scroll(); 251 lcd_scroll_pause(); /* pause is better than stop when
252 are gonna clear the screen anyway */
252 lcd_clear_display(); 253 lcd_clear_display();
253 254
254 menus[m].items[menus[m].cursor].function(); 255 menus[m].items[menus[m].cursor].function();