Skip to content

Commit

Permalink
Respecting color depth with RDP_CODEC_ID_NONE.
Browse files Browse the repository at this point in the history
  • Loading branch information
akallabeth committed Dec 7, 2016
1 parent d4b823d commit 514a33d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/X11/xf_gdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion libfreerdp/gdi/gdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 514a33d

Please sign in to comment.