diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-02 10:50:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-02 10:50:18 +0000 |
| commit | 9392cfbbf37b0034da4d382b25d5387ab445dc7c (patch) | |
| tree | e2ec72841db61176cc8dcba1a82fd2d04597d95d /main.c | |
| parent | render: 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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
