Patchwork [18/31] petitboot: Fix CUI scroll

login
register
mail settings
Submitter Geoff Levand
Date July 8, 2009, 12:11 a.m.
Message ID <20090708001136.173890970@am.sony.com>
Download mbox | patch
Permalink /patch/29560/
State New
Headers show

Comments

Geoff Levand - July 8, 2009, 12:11 a.m.
A call to pos_menu_cursor() is needed when items are added
to menu.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 ui/ncurses/nc-cui.c |    3 +++
 1 file changed, 3 insertions(+)

Patch

--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -366,6 +366,9 @@  static int cui_device_add(struct device 
 			item_count(cui->main->ncm) + 1);
 	}
 
+	/* FIXME: need to make item visible somehow */
+	menu_driver(cui->main->ncm, REQ_SCR_UPAGE);
+	menu_driver(cui->main->ncm, REQ_SCR_DPAGE);
 	set_current_item(cui->main->ncm, selected);
 
 	if (cui->current == &cui->main->scr)