@@ -901,11 +917,19 @@
@@ -1054,11 +1070,19 @@
   *mask = XRenderFindFormat (xdisplay, 			     (PictFormatType | PictFormatDepth |@@ -901,11 +917,19 @@    pf.type = PictTypeDirect;   pf.depth = 32;-  pf.direct.red = 16;-  pf.direct.green = 8;-  pf.direct.blue = 0;+  if (ImageByteOrder (xdisplay) == LSBFirst)+    {+      pf.direct.red = 16;+      pf.direct.green = 8;+      pf.direct.blue = 0;+      pf.direct.alpha = 24;+    } else {