diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2002-05-21 15:04:23 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2002-05-21 15:04:23 +0000 |
| commit | c42644d2f40f85b0b33e9c44749860b790add047 (patch) | |
| tree | bfbe2ae9469e149c735d1f83d96d0f51c076cb11 | |
| parent | d1d5f9548812808e58016e935c41e3816c86e8ac (diff) | |
| download | rockbox-c42644d2f40f85b0b33e9c44749860b790add047.zip rockbox-c42644d2f40f85b0b33e9c44749860b790add047.tar.gz rockbox-c42644d2f40f85b0b33e9c44749860b790add047.tar.bz2 rockbox-c42644d2f40f85b0b33e9c44749860b790add047.tar.xz | |
Removed cursor flicker
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@648 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/menu.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/apps/menu.c b/apps/menu.c index aaa0c94..0455ecd 100644 --- a/apps/menu.c +++ b/apps/menu.c @@ -90,18 +90,17 @@ void menu_init(struct menu_items* mitems, int count) menu_top = items[0].id; menu_bottom = count-1; cursor = menu_top; -#ifdef HAVE_LCD_BITMAP - lcd_setmargins(0,0); - lcd_setfont(0); -#endif - lcd_clear_display(); - lcd_update(); } void menu_draw(void) { int i = 0; + lcd_clear_display(); +#ifdef HAVE_LCD_BITMAP + lcd_setmargins(0,0); + lcd_setfont(0); +#endif for (i = 0; i < itemcount; i++) { lcd_puts(1, i, items[i].desc); if (i < menu_top) @@ -119,7 +118,6 @@ void menu_run(void) int key; menu_draw(); - put_cursor_menu_top(); while(1) { key = button_get(); @@ -167,7 +165,6 @@ void menu_run(void) execute_menu_item(); /* Return to previous display state */ - lcd_clear_display(); menu_draw(); break; |