Fix RDP local desktop scale not taking effect on remote

This commit is contained in:
Jonathan Barner
2020-11-15 10:47:23 +02:00
parent 2cf5a4317d
commit 501304c51f

View File

@@ -518,7 +518,7 @@ namespace mRemoteNG.Connection.Protocol.RDP
{
try
{
var scaleFactor = (uint)_displayProperties.ResolutionScalingFactor.Width * 100;
var scaleFactor = (uint)(_displayProperties.ResolutionScalingFactor.Width * 100);
SetExtendedProperty("DesktopScaleFactor", scaleFactor);
SetExtendedProperty("DeviceScaleFactor", (uint)100);