ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/x11raster.c
(Generate patch)

Comparing ray/src/px/x11raster.c (file contents):
Revision 2.2 by greg, Thu May 14 08:58:23 1992 UTC vs.
Revision 2.3 by greg, Tue May 19 13:10:07 1992 UTC

# Line 48 | Line 48 | int    bm_pad;
48          xr->image = XCreateImage(disp,ourvinfo.visual,depth,
49                          depth==1 ? XYBitmap : ZPixmap,
50                          0,data,width,height,bm_pad,0);
51 <        xr->image->bitmap_bit_order = MSBFirst;
52 <        xr->image->byte_order = MSBFirst;
51 >        if (depth == 1) {
52 >                xr->image->bitmap_bit_order = MSBFirst;
53 >                xr->image->byte_order = MSBFirst;
54 >        } else
55 >                xr->image->byte_order = LSBFirst;
56          if (xr->image->bits_per_pixel == 32) {
57                  xr->image->bytes_per_line = xr->image->bytes_per_line*24/32;
58                  xr->image->bits_per_pixel = 24;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines