From 94e026d114e1281a58219c28a7f2b1708431bfe5 Mon Sep 17 00:00:00 2001 From: Marin Ivanov Date: Wed, 27 Jul 2016 02:39:31 +0200 Subject: [PATCH] Remove chat infobox flicker --- src/chat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/chat.c b/src/chat.c index 3df5288..b33c475 100644 --- a/src/chat.c +++ b/src/chat.c @@ -862,7 +862,7 @@ static void draw_infobox(ToxWindow *self) wprintw(infobox->win, "%.2f\n", infobox->vad_lvl); wborder(infobox->win, ACS_VLINE, ' ', ACS_HLINE, ACS_HLINE, ACS_TTEE, ' ', ACS_LLCORNER, ' '); - wrefresh(infobox->win); + wnoutrefresh(infobox->win); } #endif /* AUDIO */ @@ -1104,12 +1104,11 @@ static void chat_onDraw(ToxWindow *self, Tox *m) int new_x = ctx->start ? x2 - 1 : MAX(0, wcswidth(ctx->line, ctx->pos)); wmove(self->window, y + 1, new_x); - wrefresh(self->window); + wnoutrefresh(self->window); #ifdef AUDIO if (ctx->infobox.active) { draw_infobox(self); - wrefresh(self->window); } #endif