summaryrefslogtreecommitdiffstats
path: root/xlib/ximage.c
diff options
context:
space:
mode:
authordas <das@noemail.net>2007-06-29 03:20:58 (GMT)
committerdas <das@noemail.net>2007-06-29 03:20:58 (GMT)
commit0ec736baa4e50ba3f5884d1e46ac0502acc962be (patch)
treedb4d1521032510f45f3c14bf1c8678edba77daba /xlib/ximage.c
parent33dbbdabc1952fca241d67fa880c5d1360b97329 (diff)
downloadtk-0ec736baa4e50ba3f5884d1e46ac0502acc962be.zip
tk-0ec736baa4e50ba3f5884d1e46ac0502acc962be.tar.gz
tk-0ec736baa4e50ba3f5884d1e46ac0502acc962be.tar.bz2
* xlib/ximage.c: bitmaps created from the static .bmp
arrays always have LSBFirst bit order. FossilOrigin-Name: d1c90f4bee55776e8c59ff5a94a50ea7c4770ac4
Diffstat (limited to 'xlib/ximage.c')
-rw-r--r--xlib/ximage.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlib/ximage.c b/xlib/ximage.c
index c869332..9087a0f 100644
--- a/xlib/ximage.c
+++ b/xlib/ximage.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: ximage.c,v 1.4.8.2 2007/06/23 00:26:42 das Exp $
+ * RCS: @(#) $Id: ximage.c,v 1.4.8.3 2007/06/29 03:20:58 das Exp $
*/
#include "tkInt.h"
@@ -54,6 +54,8 @@ XCreateBitmapFromData(display, d, data, width, height)
}
ximage = XCreateImage(display, NULL, 1, XYBitmap, 0, (char*) data, width,
height, 8, (width + 7) / 8);
+ ximage->bitmap_bit_order = LSBFirst;
+ _XInitImageFuncPtrs(ximage);
TkPutImage(NULL, 0, display, pix, gc, ximage, 0, 0, 0, 0, width, height);
ximage->data = NULL;
XDestroyImage(ximage);