Respecting color depth with RDP_CODEC_ID_NONE.

This commit is contained in:
Armin Novak 2016-12-07 11:26:42 +01:00
parent d4b823d5cb
commit 514a33d435
2 changed files with 2 additions and 2 deletions

View File

@ -1039,7 +1039,7 @@ static BOOL xf_gdi_surface_bits(rdpContext* context,
case RDP_CODEC_ID_NONE:
pSrcData = cmd->bitmapData;
format = PIXEL_FORMAT_BGRX32;
format = gdi_get_pixel_format(cmd->bpp);
if (!freerdp_image_copy(gdi->primary_buffer, gdi->dstFormat, stride,
0, 0,

View File

@ -985,7 +985,7 @@ static BOOL gdi_surface_bits(rdpContext* context,
break;
case RDP_CODEC_ID_NONE:
format = PIXEL_FORMAT_BGRX32;
format = gdi_get_pixel_format(cmd->bpp);
if (!freerdp_image_copy(gdi->primary_buffer, gdi->dstFormat, gdi->stride,
cmd->destLeft, cmd->destTop, cmd->width, cmd->height,