From 62f4b0be2e28e3cbceea462601655ee0c13176d5 Mon Sep 17 00:00:00 2001 From: Mike McDonald Date: Thu, 18 Sep 2014 19:31:06 -0400 Subject: [PATCH] Modified code to honor the negotiated settings for 1) ENC_SALTED_CHECKSUM in the general capability set extraFlags field and 2) DRAW_ALLOW_SKIP_ALPHA in the bitmap capability set drawingFlags field. --- libfreerdp/core/capabilities.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libfreerdp/core/capabilities.c b/libfreerdp/core/capabilities.c index f3e105c7b..4c22a3506 100644 --- a/libfreerdp/core/capabilities.c +++ b/libfreerdp/core/capabilities.c @@ -190,6 +190,9 @@ BOOL rdp_read_general_capability_set(wStream* s, UINT16 length, rdpSettings* set if (!(extraFlags & FASTPATH_OUTPUT_SUPPORTED)) settings->FastPathOutput = FALSE; + if (!(extraFlags & ENC_SALTED_CHECKSUM)) + settings->SaltedChecksum = FALSE; + if (refreshRectSupport == FALSE) settings->RefreshRect = FALSE; @@ -339,6 +342,8 @@ BOOL rdp_read_bitmap_capability_set(wStream* s, UINT16 length, rdpSettings* sett settings->DesktopHeight = desktopHeight; } + settings->DrawAllowSkipAlpha = (drawingFlags & DRAW_ALLOW_SKIP_ALPHA) ? TRUE : FALSE; + return TRUE; }