This seems to be a bug in libpixman not libcairo, which was fixed in
CVS and in the new release that came out yesterday.

It's small enough to include here.

If you can try it out, let me know.  It makes your test code run for me.

Dave


--- src/icformat.c.orig 2005-03-02 15:43:33.000000000 +0000
+++ src/icformat.c      2005-05-19 15:55:23.000000000 +0100
@@ -99,7 +99,6 @@
     format->id = FakeClientID (0);
 */
     format->format_code = format_code;
-    format->depth = PICT_FORMAT_BPP(format_code);

     switch (PICT_FORMAT_TYPE(format_code)) {
     case PICT_TYPE_ARGB:
@@ -148,6 +147,11 @@
        /* remaining fields already set to zero */
        break;
     }
+
+    format->depth = _IcOnes ((format->alphaMask << format->alpha) |
+                            (format->redMask << format->red) |
+                            (format->blueMask << format->blue) |
+                            (format->greenMask << format->green));
 }
 slim_hidden_def(pixman_format_init);



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to