diff options
Diffstat (limited to 'scripts/kconfig/lxdialog/msgbox.c')
-rw-r--r-- | scripts/kconfig/lxdialog/msgbox.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/kconfig/lxdialog/msgbox.c b/scripts/kconfig/lxdialog/msgbox.c index 7323f5471f69..236759ff3f4e 100644 --- a/scripts/kconfig/lxdialog/msgbox.c +++ b/scripts/kconfig/lxdialog/msgbox.c | |||
@@ -40,19 +40,20 @@ int dialog_msgbox(const char *title, const char *prompt, int height, int width, | |||
40 | dialog = newwin(height, width, y, x); | 40 | dialog = newwin(height, width, y, x); |
41 | keypad(dialog, TRUE); | 41 | keypad(dialog, TRUE); |
42 | 42 | ||
43 | draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); | 43 | draw_box(dialog, 0, 0, height, width, |
44 | dlg.dialog.atr, dlg.border.atr); | ||
44 | 45 | ||
45 | print_title(dialog, title, width); | 46 | print_title(dialog, title, width); |
46 | 47 | ||
47 | wattrset(dialog, dialog_attr); | 48 | wattrset(dialog, dlg.dialog.atr); |
48 | print_autowrap(dialog, prompt, width - 2, 1, 2); | 49 | print_autowrap(dialog, prompt, width - 2, 1, 2); |
49 | 50 | ||
50 | if (pause) { | 51 | if (pause) { |
51 | wattrset(dialog, border_attr); | 52 | wattrset(dialog, dlg.border.atr); |
52 | mvwaddch(dialog, height - 3, 0, ACS_LTEE); | 53 | mvwaddch(dialog, height - 3, 0, ACS_LTEE); |
53 | for (i = 0; i < width - 2; i++) | 54 | for (i = 0; i < width - 2; i++) |
54 | waddch(dialog, ACS_HLINE); | 55 | waddch(dialog, ACS_HLINE); |
55 | wattrset(dialog, dialog_attr); | 56 | wattrset(dialog, dlg.dialog.atr); |
56 | waddch(dialog, ACS_RTEE); | 57 | waddch(dialog, ACS_RTEE); |
57 | 58 | ||
58 | print_button(dialog, " Ok ", height - 2, width / 2 - 4, TRUE); | 59 | print_button(dialog, " Ok ", height - 2, width / 2 - 4, TRUE); |