aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-17 15:36:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-17 15:36:27 +0000
commit80aef9b6af1383266f2bb648ad6ec36bd134e324 (patch)
tree9eeaad217b9939a750d3e32e4579039b0ad8e8d1 /render.c
parentREADME; emphasize bitmap and color emoji font support (diff)
render: use 32-bit pixman calls, where applicable
Diffstat (limited to 'render.c')
-rw-r--r--render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render.c b/render.c
index e2ed46b1..7285eac3 100644
--- a/render.c
+++ b/render.c
@@ -240,7 +240,7 @@ render_cell(struct terminal *term, pixman_image_t *pix,
if (pixman_image_get_format(glyph->pix) == PIXMAN_a8r8g8b8) {
/* Glyph surface is a pre-rendered image (typically a color emoji...) */
if (!(cell->attrs.blink && term->blink.state == BLINK_OFF)) {
- pixman_image_composite(
+ pixman_image_composite32(
PIXMAN_OP_OVER, glyph->pix, NULL, pix, 0, 0, 0, 0,
x + glyph->x, y + term->fextents.ascent - glyph->y,
glyph->width, glyph->height);
@@ -249,7 +249,7 @@ render_cell(struct terminal *term, pixman_image_t *pix,
/* Glyph surface is an alpha mask */
/* TODO: cache */
pixman_image_t *src = pixman_image_create_solid_fill(&fg);
- pixman_image_composite(
+ pixman_image_composite32(
PIXMAN_OP_OVER, src, glyph->pix, pix, 0, 0, 0, 0,
x + glyph->x, y + term->fextents.ascent - glyph->y,
glyph->width, glyph->height);