mirror of https://github.com/FreeRDP/FreeRDP
[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:
parent
278a56263b
commit
5cb463e74b
|
@ -314,6 +314,10 @@ static UINT rdpgfx_send_supported_caps(GENERIC_CHANNEL_CALLBACK* callback)
|
|||
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))
|
||||
{
|
||||
capsSet = &capsSets[pdu.capsSetCount++];
|
||||
|
@ -337,6 +341,7 @@ static UINT rdpgfx_send_supported_caps(GENERIC_CHANNEL_CALLBACK* callback)
|
|||
capsSet->length = 0x4;
|
||||
capsSet->flags = caps10Flags;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!rdpgfx_is_capability_filtered(gfx, RDPGFX_CAPVERSION_107))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue