diff options
author | June McEnroe <june@causal.agency> | 2020-02-10 21:34:23 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-10 21:34:23 -0500 |
commit | 66fe89b84b8acc9c34ab03eeb17ca7b7f6eff1e5 (patch) | |
tree | b528a06c7dc66879052d64926ed35592a4989806 | |
parent | Only write out title on uiDraw (diff) | |
download | catgirl-66fe89b84b8acc9c34ab03eeb17ca7b7f6eff1e5.tar.gz catgirl-66fe89b84b8acc9c34ab03eeb17ca7b7f6eff1e5.zip |
Only write out title if it has changed
Diffstat (limited to '')
-rw-r--r-- | ui.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui.c b/ui.c index 297fd7b..dcfb607 100644 --- a/ui.c +++ b/ui.c @@ -293,8 +293,12 @@ void uiDraw(void) { BOTTOM, RIGHT ); doupdate(); - if (!to_status_line) return; + + static char prevTitle[sizeof(title)]; + if (!strcmp(title, prevTitle)) return; + strcpy(prevTitle, title); + putp(to_status_line); putp(title); putp(from_status_line); |