imlib2 cross-endianess fix from Geoffrey Giesemann

SVN revision: 17454
This commit is contained in:
Carsten Haitzler 2005-10-12 03:17:46 +00:00
parent 4c0f2e1240
commit 5a9a40ace5
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}