From 514a33d4352984c0c2bb1b92b1e3cee92c609f10 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 7 Dec 2016 11:26:42 +0100 Subject: [PATCH] Respecting color depth with RDP_CODEC_ID_NONE. --- client/X11/xf_gdi.c | 2 +- libfreerdp/gdi/gdi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/X11/xf_gdi.c b/client/X11/xf_gdi.c index a3614d556..753d453bd 100644 --- a/client/X11/xf_gdi.c +++ b/client/X11/xf_gdi.c @@ -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, diff --git a/libfreerdp/gdi/gdi.c b/libfreerdp/gdi/gdi.c index dc1c2cf50..d1b8b2e68 100644 --- a/libfreerdp/gdi/gdi.c +++ b/libfreerdp/gdi/gdi.c @@ -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,