summaryrefslogtreecommitdiff
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
parent3da55ac420f59ad571eafa43097feabaf6d78c31 (diff)
downloadrockbox-a8e89fd693038bc073170b3f390ef44ddb136827.zip
rockbox-a8e89fd693038bc073170b3f390ef44ddb136827.tar.gz
rockbox-a8e89fd693038bc073170b3f390ef44ddb136827.tar.bz2
rockbox-a8e89fd693038bc073170b3f390ef44ddb136827.tar.xz
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
-rw-r--r--apps/menu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/menu.c b/apps/menu.c
index 93e8394..79919f1 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();