This commit is contained in:
TinyHerm committed 2026-11-24 23:40:08 +03:00
commit 1c7a8cf25f
579 files changed
+83196

No files matched your search

@@ -0,0 +1,19 @@
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;
}
}