repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 819a0930c855c799ec1d473d14b246c40ae78bec: path_to: revision_to:
commit 819a0930c855c799ec1d473d14b246c40ae78bec Author: Marc LehmannDate: Thu Jun 7 20:31:26 2012 +0000 *** empty log message *** diff --git a/src/rxvtimg.C b/src/rxvtimg.C
--- a/src/rxvtimg.C
+++ b/src/rxvtimg.C
@@ -123,10 +123,7 @@ rxvt_img::new_from_pixbuf (rxvt_screen *s, GdkPixbuf *pb)
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;
-----END OF PAGE-----