1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

WINDOW_REC: added width and height variables

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1161 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-28 15:44:29 +00:00 committed by cras
parent e75ce196e8
commit 4339c9a7ed
2 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,8 @@ typedef struct {
int refnum;
char *name;
int width, height;
GSList *items;
WI_ITEM_REC *active;
SERVER_REC *active_server;

View File

@ -54,6 +54,9 @@ static GUI_WINDOW_REC *gui_window_init(WINDOW_REC *window, MAIN_WINDOW_REC *pare
{
GUI_WINDOW_REC *gui;
window->width = COLS;
window->height = parent->lines;
gui = g_new0(GUI_WINDOW_REC, 1);
gui->parent = parent;
@ -910,6 +913,9 @@ void gui_window_resize(WINDOW_REC *window, int ychange, int xchange)
gui = WINDOW_GUI(window);
window->width = COLS;
window->height = gui->parent->lines;
if (xchange) {
/* window width changed, we'll need to recalculate a
few things.. */