From 03ed4535c8489700058fb283837752035f3cf83d Mon Sep 17 00:00:00 2001 From: foswret Date: Sat, 2 May 2026 13:01:10 -0500 Subject: months start on correct first day of the month, no needed --- src/calp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/calp.c') diff --git a/src/calp.c b/src/calp.c index 9360551..d1a1b62 100644 --- a/src/calp.c +++ b/src/calp.c @@ -21,6 +21,7 @@ int main (void) { int num_of_months = 12; extern int days_in_month[12]; + // TBD: Add ability to choose filename char *filename; filename = "output.pdf"; @@ -61,7 +62,8 @@ int main (void) { // Draw all months for (int i = 0; i < num_of_months; i++) { - draw_month(paper, cd, day, &dim, days_in_month[i]); + draw_month(paper, cd, day, &dim, days_in_month[i], day_of_week(1, i + 1, year)); + printf("%d\n", day_of_week(1, i + 1, year)); // Goes to next page in pdf cairo_show_page(paper); } -- cgit v1.2.3