summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-windows.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-28 15:44:29 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-28 15:44:29 +0000
commit4339c9a7edaff30309d2572c419eb936bff371b2 (patch)
tree0d7bb07f0e0626429c6d2c666c2e88c3e047ec66 /src/fe-text/gui-windows.c
parente75ce196e8376de78d8a8b4ad3cbaa4ad18b937f (diff)
downloadirssi-4339c9a7edaff30309d2572c419eb936bff371b2.zip
WINDOW_REC: added width and height variables
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1161 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-windows.c')
-rw-r--r--src/fe-text/gui-windows.c6
1 files changed, 6 insertions, 0 deletions
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.. */