sna/glyphs: Fix typo and render glyphs to the small mask

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-07-14 16:58:18 +01:00
parent 2b94f9a043
commit 797ebf937f
1 changed files with 2 additions and 2 deletions

View File

@ -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,