From 69a721f7cbc40960524a4d4ec567a95b02d48b63 Mon Sep 17 00:00:00 2001 From: Bart Warmerdam Date: Sun, 20 Jan 2013 11:50:27 +0100 Subject: [PATCH] Revert "Use correct RGB byte odering for uncompressed bitmaps (ms-rdpbcgr p192), RED=lsB, BLUE=msB" This reverts commit 4efe900f2d3ba4a2a3d60d2b68b1a90b739b9c2d. --- libxrdp/xrdp_orders.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libxrdp/xrdp_orders.c b/libxrdp/xrdp_orders.c index 7a17759c..bb95aa71 100644 --- a/libxrdp/xrdp_orders.c +++ b/libxrdp/xrdp_orders.c @@ -1872,9 +1872,9 @@ xrdp_orders_send_raw_bitmap(struct xrdp_orders *self, if (Bpp == 3) { pixel = GETPIXEL32(data, j, i, width); - out_uint8(self->out_s, pixel); - out_uint8(self->out_s, pixel >> 8); out_uint8(self->out_s, pixel >> 16); + out_uint8(self->out_s, pixel >> 8); + out_uint8(self->out_s, pixel); } else if (Bpp == 2) { @@ -2093,9 +2093,9 @@ xrdp_orders_send_raw_bitmap2(struct xrdp_orders *self, if (Bpp == 3) { pixel = GETPIXEL32(data, j, i, width); - out_uint8(self->out_s, pixel); - out_uint8(self->out_s, pixel >> 8); out_uint8(self->out_s, pixel >> 16); + out_uint8(self->out_s, pixel >> 8); + out_uint8(self->out_s, pixel); } else if (Bpp == 2) {