summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-helpscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ncurses/nc-helpscreen.c')
-rw-r--r--ui/ncurses/nc-helpscreen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/ncurses/nc-helpscreen.c b/ui/ncurses/nc-helpscreen.c
index 3b27d57..fd76a43 100644
--- a/ui/ncurses/nc-helpscreen.c
+++ b/ui/ncurses/nc-helpscreen.c
@@ -48,7 +48,8 @@ struct nc_scr *help_screen_return_scr(struct help_screen *screen)
struct help_screen *help_screen_init(struct cui *cui,
struct nc_scr *current_scr,
- const char *title_suffix, const char *text,
+ const char *title_suffix,
+ const struct help_text *text,
void (*on_exit)(struct cui *))
{
struct help_screen *screen;
@@ -63,7 +64,7 @@ struct help_screen *help_screen_init(struct cui *cui,
_("Petitboot help: %s"), title_suffix);
text_screen_init(&screen->text_scr, cui, title, on_exit);
- text_screen_set_text(&screen->text_scr, text);
+ text_screen_set_text(&screen->text_scr, text->text);
text_screen_draw(&screen->text_scr);
return screen;
OpenPOWER on IntegriCloud