From 130561c9fc6e157d3dc617f5d5f1638894bbbb3e Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 22 Dec 2020 13:00:54 +0100 Subject: [PATCH] Removed size change check from DesktopResize Just pass on every reset event from the server, the callback might need to reset internal state even if the resolution did not change. --- libfreerdp/gdi/gfx.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/libfreerdp/gdi/gfx.c b/libfreerdp/gdi/gfx.c index c2103328e..a395d3e02 100644 --- a/libfreerdp/gdi/gfx.c +++ b/libfreerdp/gdi/gfx.c @@ -76,14 +76,11 @@ static UINT gdi_ResetGraphics(RdpgfxClientContext* context, DesktopWidth = resetGraphics->width; DesktopHeight = resetGraphics->height; - if ((DesktopWidth != settings->DesktopWidth) || (DesktopHeight != settings->DesktopHeight)) - { - settings->DesktopWidth = DesktopWidth; - settings->DesktopHeight = DesktopHeight; + settings->DesktopWidth = DesktopWidth; + settings->DesktopHeight = DesktopHeight; - if (update) - update->DesktopResize(gdi->context); - } + if (update) + update->DesktopResize(gdi->context); context->GetSurfaceIds(context, &pSurfaceIds, &count);