diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-05-13 21:35:02 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-05-18 11:02:56 +0200 |
commit | 05ba450c3b58c095b1e4ed206c25654f29a33b5a (patch) | |
tree | f6df52f53a4e3149b3d214edd212fb8f8249d1c6 /src/wins.c | |
parent | 5eea05a2033c479c74ab70d77dc0a0d31233c59d (diff) | |
download | calcurse-05ba450c3b58c095b1e4ed206c25654f29a33b5a.zip |
Reduce flicker when resizing in option menus
Do not update the main windows when resizing the terminal in the general
options menu or in the notification options menu.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/wins.c')
-rw-r--r-- | src/wins.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -584,12 +584,18 @@ void wins_update(int flags) } /* Reset the screen, needed when resizing terminal for example. */ -void wins_reset(void) +void wins_reset_noupdate(void) { endwin(); wins_refresh(); curs_set(0); wins_reinit(); +} + +/* Reset the screen, needed when resizing terminal for example. */ +void wins_reset(void) +{ + wins_reset_noupdate(); wins_update(FLAG_ALL); } |