X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fgrab-ximage.c;h=b1c1cf45a6fdeb28ae691658659feb9874fbbad3;hp=f7e44873266ef9ff37119ceae2af722b4f5786c5;hb=0d6b320def9180cf907ceaed56b23a972a11b757;hpb=3f438031d610c7e15fd33876a879b97e290e05fb diff --git a/hacks/glx/grab-ximage.c b/hacks/glx/grab-ximage.c index f7e44873..b1c1cf45 100644 --- a/hacks/glx/grab-ximage.c +++ b/hacks/glx/grab-ximage.c @@ -141,6 +141,13 @@ convert_ximage_to_rgba32 (Screen *screen, XImage *image) 0); to->data = (char *) calloc (to->height, to->bytes_per_line); + /* Set the bit order in the XImage structure to whatever the + local host's native bit order is. + */ + to->bitmap_bit_order = + to->byte_order = + (bigendian() ? MSBFirst : LSBFirst); + if (visual_class (screen, visual) == PseudoColor || visual_class (screen, visual) == GrayScale) {