mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: use CAIRO_OPERATER_SOURCE to draw glyphs
This is *much* faster.
This commit is contained in:
parent
f1fa5a4a37
commit
69e7744e5d
1 changed files with 0 additions and 2 deletions
2
render.c
2
render.c
|
|
@ -99,7 +99,6 @@ render_cell(struct terminal *term, struct buffer *buf, const struct cell *cell,
|
|||
buf->cairo, gseq.foreground.r, gseq.foreground.g,
|
||||
gseq.foreground.b, gseq.foreground.a);
|
||||
|
||||
cairo_set_operator(buf->cairo, CAIRO_OPERATOR_OVER);
|
||||
cairo_show_glyphs(buf->cairo, gseq.glyphs, gseq.count);
|
||||
|
||||
gseq.g = gseq.glyphs;
|
||||
|
|
@ -603,7 +602,6 @@ grid_render(struct terminal *term)
|
|||
cairo_set_source_rgba(
|
||||
buf->cairo, gseq.foreground.r, gseq.foreground.g,
|
||||
gseq.foreground.b, gseq.foreground.a);
|
||||
cairo_set_operator(buf->cairo, CAIRO_OPERATOR_OVER);
|
||||
cairo_show_glyphs(buf->cairo, gseq.glyphs, gseq.count);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue