Fix cross-endianness for masks (1-bit depth images)

Summary:
Imlib generates masks on the client side with the bit order
of the client. Set this bit order for produced XImages.

Reviewers: kwo

Differential Revision: https://phab.enlightenment.org/D3891
This commit is contained in:
Alexander Smirnov 2016-04-13 21:03:31 +02:00 committed by Kim Woelders
parent ecfe46cc4a
commit 7836d83951
1 changed files with 2 additions and 0 deletions

View File

@ -360,8 +360,10 @@ __imlib_ProduceXImage(Display * d, Visual * v, int depth, int w, int h,
/* (rather than the Xserver) */
#ifdef WORDS_BIGENDIAN
xim->byte_order = MSBFirst;
xim->bitmap_bit_order = MSBFirst;
#else
xim->byte_order = LSBFirst;
xim->bitmap_bit_order = LSBFirst;
#endif
/* return out image */