diff mbox

[18/31] petitboot: Fix CUI scroll

Message ID 20090708001136.173890970@am.sony.com
State New
Headers show

Commit Message

Geoff Levand July 8, 2009, 12:11 a.m. UTC
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(+)
diff mbox

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)