From 03ed480654d99906197a3cc46013ac977e3a8d33 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 29 Feb 2012 17:22:32 +0100 Subject: 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 --- src/custom.c | 1 - src/utils.c | 2 -- 2 files changed, 3 deletions(-) (limited to 'src') diff --git a/src/custom.c b/src/custom.c index d242b7f..4b8d734 100644 --- a/src/custom.c +++ b/src/custom.c @@ -879,7 +879,6 @@ print_key_incolor (WINDOW *win, char *option, int pos_y, int pos_x) custom_apply_attr (win, color); mvwprintw (win, pos_y, pos_x, "%s ", option); custom_remove_attr (win, color); - wnoutrefresh (win); } static int diff --git a/src/utils.c b/src/utils.c index 0ba3a87..e477014 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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++) mvwprintw (win, r, c, " "); } - - wnoutrefresh (win); } /* draws a popup window */ -- cgit v1.2.3-70-g09d2