--- rxvt-unicode/src/rxvtimg.C 2012/06/07 20:26:21 1.55 +++ rxvt-unicode/src/rxvtimg.C 2012/06/07 20:31:26 1.56 @@ -123,10 +123,7 @@ uint32_t v = (r << 16) | (g << 8) | b; - if (ecb_big_endian ()) - v = ecb_bswap32 (v); - - if (byte_order_mismatch) + if (ecb_big_endian () ? !byte_order_mismatch : byte_order_mismatch) v = ecb_bswap32 (v); *dst++ = v;