Implemented /occupants show

This commit is contained in:
James Booth
2014-10-09 21:42:09 +01:00
parent 73262221f5
commit cbe14d6e4e
6 changed files with 43 additions and 4 deletions

View File

@@ -102,6 +102,19 @@ win_hide_subwin(ProfWin *window)
win_redraw(window);
}
void
win_show_subwin(ProfWin *window)
{
if (!window->subwin) {
window->subwin = newpad(PAD_SIZE, OCCUPANT_WIN_WIDTH);
wbkgd(window->subwin, COLOUR_TEXT);
int cols = getmaxx(stdscr);
wresize(window->win, PAD_SIZE, (cols/OCCUPANT_WIN_RATIO) * (OCCUPANT_WIN_RATIO-1));
win_redraw(window);
}
}
void
win_free(ProfWin* window)
{