From 9392cfbbf37b0034da4d382b25d5387ab445dc7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 2 Jul 2019 12:50:18 +0200 Subject: [PATCH] render: draw pre-rendered glyph OVER background This allows us to render the background dynamically. Note that pre-rendered glyphs still have wrong foreground color. --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 1a3458f6..81cd4656 100644 --- a/main.c +++ b/main.c @@ -171,6 +171,7 @@ grid_render_update(struct context *c, struct buffer *buf, const struct damage *d cairo_pattern_set_matrix(pat, &matrix); cairo_mask(buf->cairo, pat); #else /* TODO: blit image instead - but doesn't (yet) handle colors */ + cairo_set_operator(buf->cairo, CAIRO_OPERATOR_OVER); cairo_set_source(buf->cairo, pat); cairo_rectangle(buf->cairo, x, y, width, height); cairo_fill(buf->cairo);