- getbegyx(win, y0, x0);
- sprintf(also, " (start %d,%d)", y0, x0);
- wmove(stdscr, y0, x0);
- while ((code = get_position("Resize panel", also, which, &x1, &y1)) == 0) {
- ;
- }
- if (code > 0) {
- WINDOW *next = newwin(ABS(y1 - y0) + 1,
- ABS(x1 - x0) + 1,
- MIN(y0, y1),
- MIN(x0, x1));
- if (next != 0) {
- keypad(next, TRUE);
- if (use_colors) {
- wbkgdset(next, (chtype) (COLOR_PAIR(which) | ' '));
- } else {
- wbkgdset(next, A_BOLD | ' ');
+ getbegyx(win, y0, x0);
+ sprintf(also, " (start %d,%d)", y0, x0);
+ wmove(stdscr, y0, x0);
+ while ((code = get_position("Resize panel",
+ also, which, &x1, &y1)) == 0) {
+ ;
+ }
+ if (code > 0) {
+ WINDOW *next = newwin(ABS(y1 - y0) + 1,
+ ABS(x1 - x0) + 1,
+ MIN(y0, y1),
+ MIN(x0, x1));
+ if (next != 0) {
+ keypad(next, TRUE);
+ if (use_colors) {
+ wbkgdset(next, (chtype) (COLOR_PAIR(which) | ' '));
+ } else if (!unboxed) {
+ wbkgdset(next, A_BOLD | ' ');
+ }
+ replace_panel(pans[which], next);
+ myFill(pans[which]);
+ delwin(win);