diff options
author | James Booth <boothj5@gmail.com> | 2013-04-22 00:02:56 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-04-22 00:02:56 +0100 |
commit | 5805ee3546a64fc2d3ac874669be1f8b79ec8bad (patch) | |
tree | 59b77b8dfb62c016eb2b033711493d1aaed8dffb /src/ui/titlebar.c | |
parent | 81020e6d4378e98039f1ba91bbba748c4283e7d1 (diff) | |
download | profani-tty-5805ee3546a64fc2d3ac874669be1f8b79ec8bad.tar.gz |
Use werase() rather than wclear() to avoid screen flash
Diffstat (limited to 'src/ui/titlebar.c')
-rw-r--r-- | src/ui/titlebar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index 5c8cee83..c786c774 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -52,7 +52,7 @@ create_title_bar(void) void title_bar_title(void) { - wclear(title_bar); + werase(title_bar); recipient = NULL; typing_elapsed = NULL; title_bar_show("Profanity. Type /help for help information."); @@ -67,7 +67,7 @@ title_bar_resize(void) wresize(title_bar, 1, cols); wbkgd(title_bar, COLOUR_TITLE_TEXT); - wclear(title_bar); + werase(title_bar); _title_bar_draw_title(); _title_bar_draw_status(); dirty = TRUE; @@ -173,7 +173,7 @@ title_bar_set_typing(gboolean is_typing) void title_bar_draw(void) { - wclear(title_bar); + werase(title_bar); _title_bar_draw_status(); _title_bar_draw_title(); } |