mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04: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,
|
buf->cairo, gseq.foreground.r, gseq.foreground.g,
|
||||||
gseq.foreground.b, gseq.foreground.a);
|
gseq.foreground.b, gseq.foreground.a);
|
||||||
|
|
||||||
cairo_set_operator(buf->cairo, CAIRO_OPERATOR_OVER);
|
|
||||||
cairo_show_glyphs(buf->cairo, gseq.glyphs, gseq.count);
|
cairo_show_glyphs(buf->cairo, gseq.glyphs, gseq.count);
|
||||||
|
|
||||||
gseq.g = gseq.glyphs;
|
gseq.g = gseq.glyphs;
|
||||||
|
|
@ -603,7 +602,6 @@ grid_render(struct terminal *term)
|
||||||
cairo_set_source_rgba(
|
cairo_set_source_rgba(
|
||||||
buf->cairo, gseq.foreground.r, gseq.foreground.g,
|
buf->cairo, gseq.foreground.r, gseq.foreground.g,
|
||||||
gseq.foreground.b, gseq.foreground.a);
|
gseq.foreground.b, gseq.foreground.a);
|
||||||
cairo_set_operator(buf->cairo, CAIRO_OPERATOR_OVER);
|
|
||||||
cairo_show_glyphs(buf->cairo, gseq.glyphs, gseq.count);
|
cairo_show_glyphs(buf->cairo, gseq.glyphs, gseq.count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue