From 797ebf937fcfcc87502727c70e6b52f89fecc799 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 14 Jul 2012 16:58:18 +0100 Subject: [PATCH] sna/glyphs: Fix typo and render glyphs to the small mask Signed-off-by: Chris Wilson --- src/sna/sna_glyphs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sna/sna_glyphs.c b/src/sna/sna_glyphs.c index 8c4796a3..fa5e45bb 100644 --- a/src/sna/sna_glyphs.c +++ b/src/sna/sna_glyphs.c @@ -920,7 +920,7 @@ upload: pixman_image_t *glyph_image; glyph_image = sna_glyph_get_image(g, screen); - if (glyph_image) + if (glyph_image == NULL) goto next_image; ptr = pixman_glyph_cache_insert(cache, g, NULL, @@ -943,7 +943,7 @@ next_image: list++; } while (--nlist); - pixman_composite_glyphs_no_mask(PictOpAdd, + pixman_composite_glyphs_no_mask(PIXMAN_OP_ADD, sna->render.white_image, mask_image, 0, 0,