diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-25 16:34:41 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-25 16:34:41 +0100 |
commit | 613e9743e590b82db35d6c9a5686fb84a1ef8f9c (patch) | |
tree | d5f90d037710a1a1c20770ef3007d472cbcfd0f9 /src/gui/curses/gui-curses-window.c | |
parent | 4f9efe14e3fd74b9ec07bd3beb004d198b07a959 (diff) | |
download | weechat-613e9743e590b82db35d6c9a5686fb84a1ef8f9c.zip |
Fix bug with terminal resize: on some systems, weechat failed to read new terminal size
Diffstat (limited to 'src/gui/curses/gui-curses-window.c')
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index a939facf2..6d7dc0080 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -59,7 +59,7 @@ int window_current_color_attr; /* attr sum of last color(s) used */ int gui_window_get_width () { - return COLS; + return gui_term_cols; } /* @@ -69,7 +69,7 @@ gui_window_get_width () int gui_window_get_height () { - return LINES; + return gui_term_lines; } /* @@ -1328,16 +1328,6 @@ gui_window_switch_right (struct t_gui_window *window) void gui_window_refresh_screen () { - int new_height, new_width; - - endwin (); - refresh (); - - getmaxyx (stdscr, new_height, new_width); - - gui_ok = ((new_width >= GUI_WINDOW_MIN_WIDTH) - && (new_height >= GUI_WINDOW_MIN_HEIGHT)); - if (gui_ok) { refresh (); |