aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lxdialog/yesno.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/lxdialog/yesno.c')
-rw-r--r--scripts/kconfig/lxdialog/yesno.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/kconfig/lxdialog/yesno.c b/scripts/kconfig/lxdialog/yesno.c
index cb2568aae3ed..e938037c8020 100644
--- a/scripts/kconfig/lxdialog/yesno.c
+++ b/scripts/kconfig/lxdialog/yesno.c
@@ -53,17 +53,18 @@ int dialog_yesno(const char *title, const char *prompt, int height, int width)
53 dialog = newwin(height, width, y, x); 53 dialog = newwin(height, width, y, x);
54 keypad(dialog, TRUE); 54 keypad(dialog, TRUE);
55 55
56 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); 56 draw_box(dialog, 0, 0, height, width,
57 wattrset(dialog, border_attr); 57 dlg.dialog.atr, dlg.border.atr);
58 wattrset(dialog, dlg.border.atr);
58 mvwaddch(dialog, height - 3, 0, ACS_LTEE); 59 mvwaddch(dialog, height - 3, 0, ACS_LTEE);
59 for (i = 0; i < width - 2; i++) 60 for (i = 0; i < width - 2; i++)
60 waddch(dialog, ACS_HLINE); 61 waddch(dialog, ACS_HLINE);
61 wattrset(dialog, dialog_attr); 62 wattrset(dialog, dlg.dialog.atr);
62 waddch(dialog, ACS_RTEE); 63 waddch(dialog, ACS_RTEE);
63 64
64 print_title(dialog, title, width); 65 print_title(dialog, title, width);
65 66
66 wattrset(dialog, dialog_attr); 67 wattrset(dialog, dlg.dialog.atr);
67 print_autowrap(dialog, prompt, width - 2, 1, 3); 68 print_autowrap(dialog, prompt, width - 2, 1, 3);
68 69
69 print_buttons(dialog, height, width, 0); 70 print_buttons(dialog, height, width, 0);