mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user