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.
This commit is contained in:
akallabeth
2020-12-22 13:00:54 +01:00
parent 65bf894c8a
commit 130561c9fc

View File

@@ -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);