summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-02-29 17:22:32 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-03-12 20:36:22 +0100
commit03ed480654d99906197a3cc46013ac977e3a8d33 (patch)
treea987563204ac0409fff65a06a35dc0ffebd42aa9 /src/utils.c
parent17aa73b73fdb3181b2b2e696d094a04b8b95ed60 (diff)
downloadcalcurse-03ed480654d99906197a3cc46013ac977e3a8d33.zip
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>
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 0 insertions, 2 deletions
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 */