forked from PsychoticNinja/irssi
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;
|
int refnum;
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
|
int width, height;
|
||||||
|
|
||||||
GSList *items;
|
GSList *items;
|
||||||
WI_ITEM_REC *active;
|
WI_ITEM_REC *active;
|
||||||
SERVER_REC *active_server;
|
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;
|
GUI_WINDOW_REC *gui;
|
||||||
|
|
||||||
|
window->width = COLS;
|
||||||
|
window->height = parent->lines;
|
||||||
|
|
||||||
gui = g_new0(GUI_WINDOW_REC, 1);
|
gui = g_new0(GUI_WINDOW_REC, 1);
|
||||||
gui->parent = parent;
|
gui->parent = parent;
|
||||||
|
|
||||||
@ -910,6 +913,9 @@ void gui_window_resize(WINDOW_REC *window, int ychange, int xchange)
|
|||||||
|
|
||||||
gui = WINDOW_GUI(window);
|
gui = WINDOW_GUI(window);
|
||||||
|
|
||||||
|
window->width = COLS;
|
||||||
|
window->height = gui->parent->lines;
|
||||||
|
|
||||||
if (xchange) {
|
if (xchange) {
|
||||||
/* window width changed, we'll need to recalculate a
|
/* window width changed, we'll need to recalculate a
|
||||||
few things.. */
|
few things.. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user