upload
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user