diff --git a/nclock.c b/nclock.c index f69c695..1435c52 100644 --- a/nclock.c +++ b/nclock.c @@ -93,7 +93,8 @@ void draw(state *s) { while (1) { time(&timer); curTime = localtime(&timer); - initState(s); + initState(s); //This will manage the refresh of center positions on resizing. + clear(); //because there were some artifacts drawTime(s, curTime->tm_hour, curTime->tm_min, curTime->tm_sec); refresh(); sleep(1);