diff options
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/gui-windows.c | 6 |
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.. */ |