mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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:
parent
3d8e140a28
commit
9392cfbbf3
1 changed files with 1 additions and 0 deletions
1
main.c
1
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue