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:
parent
e75ce196e8
commit
4339c9a7ed
@ -17,6 +17,8 @@ typedef struct {
|
||||
int refnum;
|
||||
char *name;
|
||||
|
||||
int width, height;
|
||||
|
||||
GSList *items;
|
||||
WI_ITEM_REC *active;
|
||||
SERVER_REC *active_server;
|
||||
|
@ -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…
Reference in New Issue
Block a user