mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02: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:
parent
e75ce196e8
commit
4339c9a7ed
2 changed files with 8 additions and 0 deletions
|
|
@ -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.. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue