Replaced direct settings access with getter/setter

This commit is contained in:
akallabeth
2022-06-22 12:42:48 +02:00
committed by akallabeth
parent 1d2261e884
commit 90ce22283d
14 changed files with 56 additions and 33 deletions

View File

@@ -318,7 +318,7 @@ out_free:
// TODO: This is a hack to ensure connections to RDVH with 16bpp don't have an odd screen
// resolution width
// Otherwise this could result in screen corruption ..
if (settings->ColorDepth <= 16)
if (freerdp_settings_get_uint32(settings, FreeRDP_ColorDepth) <= 16)
settings->DesktopWidth &= (~1);
[self performSelectorInBackground:@selector(runSession) withObject:nil];