forked from old/legacy-imlib2
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:
parent
ecfe46cc4a
commit
7836d83951
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue