--- rxvt-unicode/src/rxvtimg.C 2012/06/07 20:31:26 1.56 +++ rxvt-unicode/src/rxvtimg.C 2012/06/07 21:28:10 1.59 @@ -16,13 +16,6 @@ ++ref->cnt; } -#if 0 -rxvt_img::rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int width, int height, Pixmap pixmap) -: s(screen), x(0), y(0), w(width), h(height), format(format), repeat(RepeatNormal), shared(false), pm(pixmap) -{ -} -#endif - rxvt_img * rxvt_img::new_from_root (rxvt_screen *s) { @@ -133,12 +126,12 @@ { uint32_t v = *(uint32_t *)src; src += 4; - if (ecb_little_endian ()) + if (ecb_big_endian ()) v = ecb_bswap32 (v); - v = ecb_rotr32 (v, 8); + v = ecb_rotl32 (v, 8); // abgr to bgra - if (byte_order_mismatch) + if (!byte_order_mismatch) v = ecb_bswap32 (v); *dst++ = v;