--- ray/src/px/x11raster.c 1992/05/14 08:58:23 2.2 +++ ray/src/px/x11raster.c 1992/05/19 13:10:07 2.3 @@ -48,8 +48,11 @@ int bm_pad; xr->image = XCreateImage(disp,ourvinfo.visual,depth, depth==1 ? XYBitmap : ZPixmap, 0,data,width,height,bm_pad,0); - xr->image->bitmap_bit_order = MSBFirst; - xr->image->byte_order = MSBFirst; + if (depth == 1) { + xr->image->bitmap_bit_order = MSBFirst; + xr->image->byte_order = MSBFirst; + } else + xr->image->byte_order = LSBFirst; if (xr->image->bits_per_pixel == 32) { xr->image->bytes_per_line = xr->image->bytes_per_line*24/32; xr->image->bits_per_pixel = 24;