diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-02-29 17:22:32 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-03-12 20:36:22 +0100 |
commit | 03ed480654d99906197a3cc46013ac977e3a8d33 (patch) | |
tree | a987563204ac0409fff65a06a35dc0ffebd42aa9 /src/custom.c | |
parent | 17aa73b73fdb3181b2b2e696d094a04b8b95ed60 (diff) | |
download | calcurse-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/custom.c')
-rw-r--r-- | src/custom.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 |