aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-02 10:50:18 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-02 10:50:18 +0000
commit9392cfbbf37b0034da4d382b25d5387ab445dc7c (patch)
treee2ec72841db61176cc8dcba1a82fd2d04597d95d /main.c
parentrender: cache glyph masks (diff)
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.
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
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);