Use proper dims for newwin.

Remove double-clear.
Add shadow.
This commit is contained in:
Andrey A. Chernov 1994-10-24 04:07:22 +00:00
parent c21d850179
commit dfee7da9e7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3825

View File

@ -10,7 +10,9 @@ display_disklabel(int disk)
int i, key=0;
WINDOW *window;
window = newwin(LINES, COLS, 0, 0);
if (use_shadow)
draw_shadow(stdscr, 1, 1, LINES-2, COLS-2);
window = newwin(LINES-2, COLS-2, 1, 1);
keypad(window, TRUE);
draw_box(window, 1, 1, LINES-2, COLS-2,
@ -63,11 +65,10 @@ display_disklabel(int disk)
mvwprintw(window, 14+i, 70, "cpg: %d",avail_disklabels[disk].d_partitions[i].p_cpg);
}
refresh();
dialog_update();
while (key != '\n')
key = wgetch(window);
clear();
dialog_clear();
refresh();
dialog_update();
}