diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-09-29 14:04:47 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-10-06 12:37:05 +0200 |
commit | 6bdc36b15a15c98bbb33582908740346675485cc (patch) | |
tree | 193011c4eff8cafa6efb73d70117fdc9412faebb /src/calcurse.h | |
parent | 5d3ed17bc8108e4720fa10ace107ff597c9f2904 (diff) | |
download | calcurse-6bdc36b15a15c98bbb33582908740346675485cc.zip |
Avoid unnecessary window updates
Add a window bitmask to wins_update() and only update windows that might
actually require an update in our main loop. This improves response
times of the user interface a bit.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index 48325e8..aaf9e24 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -430,6 +430,13 @@ enum win { NBWINS }; +#define FLAG_CAL (1 << CAL) +#define FLAG_APP (1 << APP) +#define FLAG_TOD (1 << TOD) +#define FLAG_NOT (1 << NOT) +#define FLAG_STA (1 << STA) +#define FLAG_ALL ((1 << NBWINS) - 1) + enum ui_mode { UI_CURSES, UI_CMDLINE, @@ -946,9 +953,9 @@ void wins_reinit (void); void wins_reinit_panels (void); void wins_show (WINDOW *, char *); void wins_get_config (void); -void wins_update_border (void); -void wins_update_panels (void); -void wins_update (void); +void wins_update_border (int); +void wins_update_panels (int); +void wins_update (int); void wins_reset (void); void wins_prepare_external (void); void wins_unprepare_external (void); |