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.
This commit is contained in:
Daniel Eklöf 2019-07-02 12:50:18 +02:00
parent 3d8e140a28
commit 9392cfbbf3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

1
main.c
View file

@ -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);