From 2575749c5beadeb921405d8dfdfc6bfbc87d7464 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sat, 29 Jan 2011 02:15:10 +0100 Subject: remove annoying flickering in urxvt; use werase (blank window) instead of wclear (clear screen completely) --- src/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)); -- cgit v1.2.3