]> Pileus Git - lackey/blobdiff - views/month.c
Add cal_load function and update cal APIs
[lackey] / views / month.c
index c84fe94c5a980fdacd4a5e77927fa5db27e46efd..60ee80766f95409446b529e69f894cdcf16fd821 100644 (file)
@@ -51,6 +51,9 @@ void month_draw(void)
        const float hstep = (float)(COLS-1)/7.0;
        const float vstep = (float)(LINES-2-hdr+COMPACT)/weeks;
 
+       /* Load cal data */
+       cal_load(YEAR, MONTH, 0, days);
+
        /* Print Header */
        if (COMPACT) wattron(win, A_REVERSE | A_BOLD);
        if (COMPACT) mvwhline(win, 0, 0, ' ' | A_REVERSE | A_BOLD, COLS);