Files
2026-11-24 23:40:08 +03:00

20 lines
395 B
C#

namespace VibranceHud.Capabilities;
internal static class RemeasurePolicy
{
internal const int MaxTries = 3;
internal static bool ShouldRemeasure(MachineCapabilities current, int triesSoFar)
{
if (current.GammaRamp != GammaSupport.Refused)
{
return false;
}
if (current.RefusedWhy != GammaRefusal.ScreenUnreadable)
{
return triesSoFar < 1;
}
return triesSoFar < 3;
}
}