Keep auto image quality above 20.

This commit is contained in:
Jared 2020-10-20 21:00:39 -07:00 committed by Jared Goodwin
parent fc628a3cab
commit 9ac97bb06f

View File

@ -349,7 +349,7 @@ namespace Remotely.Desktop.Core.Services
if (PendingSentFrames.TryPeek(out var result) && DateTimeOffset.Now - result > TimeSpan.FromMilliseconds(200))
{
var latency = (DateTimeOffset.Now - result).TotalMilliseconds;
ImageQuality = (int)(200 / latency * _defaultImageQuality);
ImageQuality = Math.Max(20, (int)(200 / latency * _defaultImageQuality));
}
else if (ImageQuality != _defaultImageQuality)
{