diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index 7c0dbe53..ee1e4e10 100644 --- a/uxa/uxa-render.c +++ b/uxa/uxa-render.c @@ -147,6 +147,8 @@ uxa_get_pixel_from_rgba(CARD32 * pixel, gbits = PICT_FORMAT_G(format); bbits = PICT_FORMAT_B(format); abits = PICT_FORMAT_A(format); + if (abits == 0) + abits = PICT_FORMAT_BPP(format) - (rbits+gbits+bbits); if (PICT_FORMAT_TYPE(format) == PICT_TYPE_ARGB) { bshift = 0;