Avoid redundant virtual screen updates

Remove some redundant wnoutrefresh() invocations. There's no need to
copy a window to the virtual screen unless doupdate() is invoked
immediately afterwards.

This reduces flicker when browsing in the calendar panel.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2012-02-29 17:22:32 +01:00
parent 17aa73b73f
commit 03ed480654
2 changed files with 0 additions and 3 deletions

View File

@ -879,7 +879,6 @@ print_key_incolor (WINDOW *win, char *option, int pos_y, int pos_x)
custom_apply_attr (win, color); custom_apply_attr (win, color);
mvwprintw (win, pos_y, pos_x, "%s ", option); mvwprintw (win, pos_y, pos_x, "%s ", option);
custom_remove_attr (win, color); custom_remove_attr (win, color);
wnoutrefresh (win);
} }
static int static int

View File

@ -181,8 +181,6 @@ erase_window_part (WINDOW *win, int first_col, int first_row, int last_col,
for (c = first_col; c <= last_col; c++) for (c = first_col; c <= last_col; c++)
mvwprintw (win, r, c, " "); mvwprintw (win, r, c, " ");
} }
wnoutrefresh (win);
} }
/* draws a popup window */ /* draws a popup window */