Use configurable dialog attributes instead of hard-coded ones

This commit is contained in:
Andrey A. Chernov 1994-10-24 05:16:00 +00:00
parent 2e1e6f4685
commit fe08a6032f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3828
2 changed files with 4 additions and 5 deletions

View File

@ -15,10 +15,9 @@ display_disklabel(int disk)
window = newwin(LINES-2, COLS-2, 1, 1);
keypad(window, TRUE);
draw_box(window, 1, 1, LINES-2, COLS-2,
COLOR_PAIR(COLOR_YELLOW), COLOR_PAIR(COLOR_BLUE));
draw_box(window, 1, 1, LINES - 2, COLS - 2, dialog_attr, border_attr);
wattrset(window, dialog_attr);
wattron(window, COLOR_PAIR(COLOR_RED));
mvwprintw(window, 2, 2, "Dumping label for disk %d, %s\n", disk, avail_disklabels[disk].d_typename);
mvwprintw(window, 3, 2, "magic = %lu",avail_disklabels[disk].d_magic);
mvwprintw(window, 3, 22, "type = %x",avail_disklabels[disk].d_type);

View File

@ -99,8 +99,8 @@ show_mbr(struct mbr *mbr)
window = newwin(LINES-2, COLS-2, 1, 1);
keypad(window, TRUE);
draw_box(window, 1, 1, LINES - 2, COLS - 2,
COLOR_PAIR(COLOR_YELLOW), COLOR_PAIR(COLOR_BLUE));
draw_box(window, 1, 1, LINES - 2, COLS - 2, dialog_attr, border_attr);
wattrset(window, dialog_attr);
for (i=0; i<NDOSPART/2; i++) {
for (j=0; j<NDOSPART/2; j++) {