From 4339c9a7edaff30309d2572c419eb936bff371b2 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 28 Jan 2001 15:44:29 +0000 Subject: WINDOW_REC: added width and height variables git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1161 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-windows.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fe-text') diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 43a5b6a7..42eebfa8 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -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.. */ -- cgit v1.2.3