summaryrefslogtreecommitdiff
path: root/src/wins.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-05-13 21:35:02 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-05-18 11:02:56 +0200
commit05ba450c3b58c095b1e4ed206c25654f29a33b5a (patch)
treef6df52f53a4e3149b3d214edd212fb8f8249d1c6 /src/wins.c
parent5eea05a2033c479c74ab70d77dc0a0d31233c59d (diff)
downloadcalcurse-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.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wins.c b/src/wins.c
index da517e8..2d521c1 100644
--- a/src/wins.c
+++ b/src/wins.c
@@ -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);
}