kwo pushed a commit to branch master. http://git.enlightenment.org/legacy/imlib2.git/commit/?id=7836d839512f1a766fa34a098bda31ef2216480c
commit 7836d839512f1a766fa34a098bda31ef2216480c Author: Alexander Smirnov <[email protected]> Date: Wed Apr 13 21:03:31 2016 +0200 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 --- src/lib/ximage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/ximage.c b/src/lib/ximage.c index 4fa1b29..750761f 100644 --- a/src/lib/ximage.c +++ b/src/lib/ximage.c @@ -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 */ --
