kconfig/lxdialog: refactor color support
[pandora-kernel.git] / scripts / kconfig / lxdialog / msgbox.c
index 7323f54..236759f 100644 (file)
@@ -40,19 +40,20 @@ int dialog_msgbox(const char *title, const char *prompt, int height, int width,
        dialog = newwin(height, width, y, x);
        keypad(dialog, TRUE);
 
-       draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr);
+       draw_box(dialog, 0, 0, height, width,
+                dlg.dialog.atr, dlg.border.atr);
 
        print_title(dialog, title, width);
 
-       wattrset(dialog, dialog_attr);
+       wattrset(dialog, dlg.dialog.atr);
        print_autowrap(dialog, prompt, width - 2, 1, 2);
 
        if (pause) {
-               wattrset(dialog, border_attr);
+               wattrset(dialog, dlg.border.atr);
                mvwaddch(dialog, height - 3, 0, ACS_LTEE);
                for (i = 0; i < width - 2; i++)
                        waddch(dialog, ACS_HLINE);
-               wattrset(dialog, dialog_attr);
+               wattrset(dialog, dlg.dialog.atr);
                waddch(dialog, ACS_RTEE);
 
                print_button(dialog, "  Ok  ", height - 2, width / 2 - 4, TRUE);