summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_orders.c
diff options
context:
space:
mode:
authorBart Warmerdam <bartw@xs4all.nl>2013-01-20 11:53:02 +0100
committerBart Warmerdam <bartw@xs4all.nl>2013-01-20 11:53:02 +0100
commit8fa8d90641d4e94f74da8ca2efccdefb6367b7d8 (patch)
tree797293265415e8a75d035769e8368127a8bb939c /libxrdp/xrdp_orders.c
parent69a721f7cbc40960524a4d4ec567a95b02d48b63 (diff)
downloadxrdp-proprietary-8fa8d90641d4e94f74da8ca2efccdefb6367b7d8.tar.gz
xrdp-proprietary-8fa8d90641d4e94f74da8ca2efccdefb6367b7d8.zip
Use correct RGB byte odering for uncompressed bitmaps (ms-rdpbcgr p192), RED=lsB, BLUE=msB
Diffstat (limited to 'libxrdp/xrdp_orders.c')
-rw-r--r--libxrdp/xrdp_orders.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libxrdp/xrdp_orders.c b/libxrdp/xrdp_orders.c
index bb95aa71..7a17759c 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 >> 16);
- out_uint8(self->out_s, pixel >> 8);
out_uint8(self->out_s, pixel);
+ out_uint8(self->out_s, pixel >> 8);
+ out_uint8(self->out_s, pixel >> 16);
}
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 >> 16);
- out_uint8(self->out_s, pixel >> 8);
out_uint8(self->out_s, pixel);
+ out_uint8(self->out_s, pixel >> 8);
+ out_uint8(self->out_s, pixel >> 16);
}
else if (Bpp == 2)
{