[channel,rdpgfx] disable client side caps

If no image scaling is available disable capabilities that require image
scaling to function properly
This commit is contained in:
akallabeth 2024-01-29 17:35:23 +01:00 committed by Pascal Nowack
parent 278a56263b
commit 5cb463e74b
1 changed files with 5 additions and 0 deletions

View File

@ -314,6 +314,10 @@ static UINT rdpgfx_send_supported_caps(GENERIC_CHANNEL_CALLBACK* callback)
capsSet->flags = caps10Flags; capsSet->flags = caps10Flags;
} }
/* The following capabilities expect support for image scaling.
* Disable these for builds that do not have support for that.
*/
#if defined(WITH_CAIRO) || defined(WITH_SWSCALE)
if (!rdpgfx_is_capability_filtered(gfx, RDPGFX_CAPVERSION_105)) if (!rdpgfx_is_capability_filtered(gfx, RDPGFX_CAPVERSION_105))
{ {
capsSet = &capsSets[pdu.capsSetCount++]; capsSet = &capsSets[pdu.capsSetCount++];
@ -337,6 +341,7 @@ static UINT rdpgfx_send_supported_caps(GENERIC_CHANNEL_CALLBACK* callback)
capsSet->length = 0x4; capsSet->length = 0x4;
capsSet->flags = caps10Flags; capsSet->flags = caps10Flags;
} }
#endif
if (!rdpgfx_is_capability_filtered(gfx, RDPGFX_CAPVERSION_107)) if (!rdpgfx_is_capability_filtered(gfx, RDPGFX_CAPVERSION_107))
{ {