diff options
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 11 |
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); |
