mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
[server,shadow] do not fall back to surfacebits
If GFX channel is desired, do not fall back to surface bits command. This will break mstsc connections after a DesktopResize was sent.
This commit is contained in:
parent
e796508c1a
commit
340101e35e
@ -223,7 +223,7 @@ static BOOL shadow_client_context_new(freerdp_peer* peer, rdpContext* context)
|
||||
settings->DrawAllowSkipAlpha = TRUE;
|
||||
settings->DrawAllowColorSubsampling = TRUE;
|
||||
settings->DrawAllowDynamicColorFidelity = TRUE;
|
||||
settings->CompressionLevel = PACKET_COMPR_TYPE_RDP6;
|
||||
settings->CompressionLevel = PACKET_COMPR_TYPE_RDP8;
|
||||
|
||||
if (server->ipcSocket && (strncmp(bind_address, server->ipcSocket,
|
||||
strnlen(bind_address, sizeof(bind_address))) != 0))
|
||||
@ -1795,7 +1795,9 @@ static BOOL shadow_client_send_surface_update(rdpShadowClient* client, SHADOW_GF
|
||||
// PRId64 " height: %" PRId64 " right: %" PRId64 " bottom: %" PRId64, nXSrc, nYSrc, nWidth,
|
||||
// nHeight, nXSrc + nWidth, nYSrc + nHeight);
|
||||
|
||||
if (settings->SupportGraphicsPipeline && pStatus->gfxOpened)
|
||||
if (settings->SupportGraphicsPipeline)
|
||||
{
|
||||
if (pStatus->gfxOpened)
|
||||
{
|
||||
/* GFX/h264 always full screen encoded */
|
||||
nWidth = settings->DesktopWidth;
|
||||
@ -1821,6 +1823,11 @@ static BOOL shadow_client_send_surface_update(rdpShadowClient* client, SHADOW_GF
|
||||
ret = shadow_client_send_surface_gfx(client, pSrcData, nSrcStep, SrcFormat, 0, 0,
|
||||
(UINT16)nWidth, (UINT16)nHeight);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = TRUE;
|
||||
}
|
||||
}
|
||||
else if (settings->RemoteFxCodec || freerdp_settings_get_bool(settings, FreeRDP_NSCodec))
|
||||
{
|
||||
WINPR_ASSERT(nXSrc >= 0);
|
||||
|
Loading…
Reference in New Issue
Block a user