Respecting color depth with RDP_CODEC_ID_NONE.
This commit is contained in:
parent
d4b823d5cb
commit
514a33d435
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user