commit 273aca4255abf628257adc488031e265761c456d
parent e00b1032ae00ddad0f616fe096e002437c15b7d1
Author: sin <sin@2f30.org>
Date: Thu, 9 Jun 2016 17:59:45 +0100
Eliminate flicker by clearing to end of line
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ncmixer.c b/ncmixer.c
@@ -312,6 +312,7 @@ draw_xfader(void)
{
int start, end, len, center, pos, i;
+ clrtoeol();
if (COLS < strlen(" -|x|- "))
return;
@@ -379,8 +380,6 @@ loop(void)
continue;
}
- erase();
-
for (i = 0; i < LEN(pfd); i++)
if (pfd[i].revents & POLLERR)
printerr(1, "bad fd");