Use correct RGB byte odering for uncompressed bitmaps (ms-rdpbcgr p192), RED=lsB, BLUE=msB

This commit is contained in:
Bart Warmerdam 2013-01-20 11:53:02 +01:00
parent 69a721f7cb
commit 8fa8d90641

View File

@ -1872,9 +1872,9 @@ xrdp_orders_send_raw_bitmap(struct xrdp_orders *self,
if (Bpp == 3) if (Bpp == 3)
{ {
pixel = GETPIXEL32(data, j, i, width); 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);
out_uint8(self->out_s, pixel >> 8);
out_uint8(self->out_s, pixel >> 16);
} }
else if (Bpp == 2) else if (Bpp == 2)
{ {
@ -2093,9 +2093,9 @@ xrdp_orders_send_raw_bitmap2(struct xrdp_orders *self,
if (Bpp == 3) if (Bpp == 3)
{ {
pixel = GETPIXEL32(data, j, i, width); 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);
out_uint8(self->out_s, pixel >> 8);
out_uint8(self->out_s, pixel >> 16);
} }
else if (Bpp == 2) else if (Bpp == 2)
{ {