Removed some little artifacts

This commit is contained in:
2017-11-27 19:26:49 +01:00
parent 07dfe830fb
commit 689b1129f5

View File

@@ -93,7 +93,8 @@ void draw(state *s) {
while (1) { while (1) {
time(&timer); time(&timer);
curTime = localtime(&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); drawTime(s, curTime->tm_hour, curTime->tm_min, curTime->tm_sec);
refresh(); refresh();
sleep(1); sleep(1);