aboutsummaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
authorfoswret2026-05-23 14:09:36 -0500
committerfoswret2026-05-23 14:09:36 -0500
commit5ead4f6c3d36557c56e27cf52835409d81ae6ed8 (patch)
tree006ecd1051d3b0fd142fe55a90973e5746d3e5fb /src/image.c
parent924ca70a4006abbffc8f43f27c4f64c8fc517a08 (diff)
remove month art drawing for now, working toward removing dimension struct in favor of generic extent structs
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/image.c b/src/image.c
index 6180631..d9ee5fa 100644
--- a/src/image.c
+++ b/src/image.c
@@ -49,17 +49,16 @@ int draw_image(cairo_t *c, char *path, double x, double y) {
// Draw month art
-int draw_month_art(cairo_t *c, struct dimensions *d, char *path) {
+int draw_month_art(cairo_t *c, struct dimensions *d, struct extents *he, struct alignment *pl, char *path) {
cairo_save(c);
- double width = d->header_width;
+ double width = he->width;
// TODO: Make this relative to text height
- double height = d->header_height - (d->margin * 3.0);
+ double height = he->height - (pl->margin * 3.0);
- double cursor_x = d->margin;
+ double cursor_x = pl->margin;
double cursor_y = d->margin;
- cairo_rectangle (c, d->margin, d->margin, width, height);
+ cairo_rectangle (c, cursor_x, cursor_y, width, height);
cairo_clip(c);
-
draw_image(c, path, cursor_x, cursor_y);
cairo_restore(c);