]> Pileus Git - lackey/blobdiff - views/week.c
Add cal_load function and update cal APIs
[lackey] / views / week.c
index 4c550a359d9a430df2fce1c2faa59ebaf4163de4..a25dc24cdf3df91505591a7b7cc7c02b5a06c2c3 100644 (file)
@@ -62,6 +62,9 @@ void week_draw(void)
        int shift = day_of_week(year, month, day);
        add_days(&year, &month, &day, -shift);
 
+       /* Load cal data */
+       cal_load(year, month, day, 7);
+
        /* For today */
        int l = ROUND((shift+0)*hstep);
        int r = ROUND((shift+1)*hstep);