Skip to content

Commit

Permalink
bug 981627 - glyph surface with ARGB format might not be a true color…
Browse files Browse the repository at this point in the history
… glyph. r=jrmuizel
  • Loading branch information
jfkthame committed Mar 24, 2014
1 parent 830107f commit 4c8c8fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gfx/cairo/cairo/src/cairo-image-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -4009,7 +4009,9 @@ _composite_glyphs (void *closure,
y2 = extents->y + extents->height;

if (glyph_surface->format == CAIRO_FORMAT_A8 ||
glyph_surface->format == CAIRO_FORMAT_A1)
glyph_surface->format == CAIRO_FORMAT_A1 ||
(glyph_surface->format == CAIRO_FORMAT_ARGB32 &&
pixman_image_get_component_alpha (glyph_surface->pixman_image)))
{
if (unlikely (src == NULL)) {
if (pattern != NULL) {
Expand Down

0 comments on commit 4c8c8fe

Please sign in to comment.