Redrawing fixes - irssi should now rarely redraw stuff uselessly in screen.

Most of the code now just marks the window/statusbar/etc. as dirty, and lets
the dirty-checker handle it later.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1926 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-28 18:40:12 +00:00 committed by cras
commit fb439b5c2a
16 changed files with 348 additions and 123 deletions

View file

@ -23,8 +23,8 @@ typedef struct {
int statusbar_lines_bottom;
int statusbar_lines; /* top+bottom */
int resize_freeze_counter;
unsigned int resize_needed:1; /* We'll need to resize the window, but haven't got around doing it just yet. */
unsigned int dirty:1; /* This window needs a redraw */
unsigned int size_dirty:1; /* We'll need to resize the window, but haven't got around doing it just yet. */
} MAIN_WINDOW_REC;
extern GSList *mainwindows;
@ -53,8 +53,7 @@ void mainwindow_change_active(MAIN_WINDOW_REC *mainwin,
int mainwindows_reserve_lines(int top, int bottom);
int mainwindow_set_statusbar_lines(MAIN_WINDOW_REC *window,
int top, int bottom);
void mainwindow_resize_freeze(MAIN_WINDOW_REC *window);
void mainwindow_resize_thaw(MAIN_WINDOW_REC *window);
void mainwindows_redraw_dirty(void);
GSList *mainwindows_get_sorted(int reverse);