diff options
author | das <das> | 2007-06-29 03:18:08 (GMT) |
---|---|---|
committer | das <das> | 2007-06-29 03:18:08 (GMT) |
commit | 77ee21b68bf5c7e7e8b0c3caa4bd77dc0fa38673 (patch) | |
tree | 4f522a0c0d63ae1523b31ae1b9afb19413be435f /xlib | |
parent | ee8638e6bb4be27be17fd6df3038e429415a5d9e (diff) | |
download | tk-77ee21b68bf5c7e7e8b0c3caa4bd77dc0fa38673.zip tk-77ee21b68bf5c7e7e8b0c3caa4bd77dc0fa38673.tar.gz tk-77ee21b68bf5c7e7e8b0c3caa4bd77dc0fa38673.tar.bz2 |
* xlib/ximage.c: bitmaps created from the static .xbm
arrays always have LSBFirst bit order.
Diffstat (limited to 'xlib')
-rw-r--r-- | xlib/ximage.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xlib/ximage.c b/xlib/ximage.c index e6e4866..9bb1dcf 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.7 2007/06/23 00:25:38 das Exp $ + * RCS: @(#) $Id: ximage.c,v 1.8 2007/06/29 03:18:08 das Exp $ */ #include "tkInt.h" @@ -53,6 +53,8 @@ XCreateBitmapFromData( } 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); |