diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-08 13:51:44 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-08 13:51:44 +0000 |
| commit | 69e7744e5dba66df6d779570ffa17033a7e89a02 (patch) | |
| tree | 307c5ce1dc815c22c020c7396c21e922dea18ce2 | |
| parent | render: use doubles instead of ints (diff) | |
render: use CAIRO_OPERATER_SOURCE to draw glyphs
This is *much* faster.
| -rw-r--r-- | render.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); } |
