diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2009-07-09 10:40:44 -0700 |
---|---|---|
committer | Geoff Levand <geoffrey.levand@am.sony.com> | 2009-07-09 10:40:44 -0700 |
commit | c10b23bce758df60e906faaf36764e38480c5174 (patch) | |
tree | 7606ce2803aa605163a166b041900000dac433a5 /ui | |
parent | 073beb0e626616ef6234dbb0eee24930517c61a9 (diff) | |
download | petitboot-c10b23bce758df60e906faaf36764e38480c5174.zip petitboot-c10b23bce758df60e906faaf36764e38480c5174.tar.gz |
Fix CUI scroll
A call to pos_menu_cursor() is needed when items are added
to menu.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ncurses/nc-cui.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c index 47c09e2..83e2939 100644 --- a/ui/ncurses/nc-cui.c +++ b/ui/ncurses/nc-cui.c @@ -366,6 +366,9 @@ static int cui_device_add(struct device *dev, void *arg) 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) |