forked from old/legacy-imlib2
imlib2 cross-endianess fix from Geoffrey Giesemann
SVN revision: 17454
This commit is contained in:
parent
4c0f2e1240
commit
5a9a40ace5
|
@ -323,6 +323,15 @@ __imlib_ProduceXImage(Display * d, Visual * v, int depth, int w, int h,
|
|||
}
|
||||
/* flush unused images from the image list */
|
||||
__imlib_FlushXImage(d);
|
||||
|
||||
/* set the byte order of the XImage to the byte_order of the Xclient */
|
||||
/* (rather than the Xserver) */
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
xim->byte_order = MSBFirst;
|
||||
#else
|
||||
xim->byte_order = LSBFirst;
|
||||
#endif
|
||||
|
||||
/* return out image */
|
||||
return xim;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue