ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtimg.C
(Generate patch)

Comparing rxvt-unicode/src/rxvtimg.C (file contents):
Revision 1.54 by root, Thu Jun 7 20:24:39 2012 UTC vs.
Revision 1.56 by root, Thu Jun 7 20:31:26 2012 UTC

80 xi.width = width; 80 xi.width = width;
81 xi.height = height; 81 xi.height = height;
82 xi.xoffset = 0; 82 xi.xoffset = 0;
83 xi.format = ZPixmap; 83 xi.format = ZPixmap;
84 xi.byte_order = ImageByteOrder (dpy); 84 xi.byte_order = ImageByteOrder (dpy);
85 xi.bitmap_unit = 32; //XY only, unused 85 xi.bitmap_unit = 0; //XY only, unused
86 xi.bitmap_bit_order = LSBFirst; //XY only, unused 86 xi.bitmap_bit_order = 0; //XY only, unused
87 xi.bitmap_pad = BitmapPad (dpy); 87 xi.bitmap_pad = BitmapPad (dpy);
88 xi.depth = depth; 88 xi.depth = depth;
89 xi.bytes_per_line = 0; 89 xi.bytes_per_line = 0;
90 xi.bits_per_pixel = 32; //Z only 90 xi.bits_per_pixel = 32; //Z only
91 xi.red_mask = 0x00000000; //Z only, unused 91 xi.red_mask = 0x00000000; //Z only, unused
121 uint8_t g = *src++; 121 uint8_t g = *src++;
122 uint8_t b = *src++; 122 uint8_t b = *src++;
123 123
124 uint32_t v = (r << 16) | (g << 8) | b; 124 uint32_t v = (r << 16) | (g << 8) | b;
125 125
126 if (ecb_big_endian ()) 126 if (ecb_big_endian () ? !byte_order_mismatch : byte_order_mismatch)
127 v = ecb_bswap32 (v);
128
129 if (byte_order_mismatch)
130 v = ecb_bswap32 (v); 127 v = ecb_bswap32 (v);
131 128
132 *dst++ = v; 129 *dst++ = v;
133 } 130 }
134 else 131 else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines