aboutsummaryrefslogtreecommitdiff
path: root/src/comet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/comet.c')
-rw-r--r--src/comet.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/comet.c b/src/comet.c
index d5eb03f..cf39f8d 100644
--- a/src/comet.c
+++ b/src/comet.c
@@ -46,8 +46,11 @@ static cairo_surface_t *render_all(layout_t *layout, config_t *config, layout_in
cairo_set_fill_rule(cr, CAIRO_FILL_RULE_EVEN_ODD);
cairo_set_operator(cr, CAIRO_OPERATOR_OVER);
- color_t color = config->background;
- cairo_set_source_rgba(cr, color.r, color.g, color.b, color.a);
+ cairo_matrix_t matrix;
+ cairo_matrix_init_scale(&matrix, 1.0 / config->width, 1.0);
+
+ cairo_pattern_set_matrix(config->background.pattern, &matrix);
+ cairo_set_source(cr, config->background.pattern);
cairo_paint(cr);
layout_render(layout, cr);