summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2011-01-29 02:15:10 +0100
committerReiner Herrmann <reiner@reiner-h.de>2011-01-29 02:15:10 +0100
commit2575749c5beadeb921405d8dfdfc6bfbc87d7464 (patch)
treef55fa012c6fe77527c8631444aa94b18266d80fd /src
parentad6af1cb3e35e56631e2bcf35145e3af695a8c6e (diff)
remove annoying flickering in urxvt; use werase (blank window) instead of wclear (clear screen completely)
Diffstat (limited to 'src')
-rw-r--r--src/ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index 04938c5..0c14ed0 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -221,7 +221,7 @@ void ui_display_wnd_current_state(const player_list_t *pl, const uint8_t num_pla
assert(pl != NULL);
uint8_t pos = 0;
- wclear(w_current_state);
+ werase(w_current_state);
wattron(w_current_state, A_BOLD);
mvwprintw(w_current_state, 0, 0, "Current state:");
mvwprintw(w_current_state, 0, 22, "Your Score: %3d", score);
@@ -271,7 +271,7 @@ void ui_display_wnd_current_state(const player_list_t *pl, const uint8_t num_pla
*/
void ui_display_wnd_messages(const char *message, const bool highlight)
{
- wclear(w_messages);
+ werase(w_messages);
if (highlight)
wattron(w_messages, COLOR_PAIR(CP_YELLOW_ON_BLACK));