diff --git a/src/cacaclock.c b/src/cacaclock.c index fa0758a..afd2978 100644 --- a/src/cacaclock.c +++ b/src/cacaclock.c @@ -39,6 +39,8 @@ int main(int argc, char *argv[]) { caca_canvas_t *cv; caca_canvas_t *figcv; caca_display_t *dp; + uint32_t w, h; + char *font = "/usr/share/figlet/mono12.tlf"; if(argc==2) font = argv[1]; @@ -65,6 +67,9 @@ int main(int argc, char *argv[]) { return -1; } + w = caca_get_canvas_width (cv); + h = caca_get_canvas_height(cv); + for(;;) { caca_event_t ev;