mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 14:25:40 +00:00
Fix volume/brightness by 5
This commit is contained in:
parent
aac4810c05
commit
b672c4e9c3
4 changed files with 9 additions and 9 deletions
|
|
@ -42,9 +42,9 @@ namespace PowerControl.Helpers
|
|||
}
|
||||
}
|
||||
|
||||
public static int GetMasterVolume10()
|
||||
public static int GetMasterVolume(double roundValue)
|
||||
{
|
||||
return (int)(Math.Round(GetMasterVolume() / 10.0) * 10.0);
|
||||
return (int)(Math.Round(GetMasterVolume() / roundValue) * roundValue);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ namespace PowerControl.Helpers
|
|||
return -1;
|
||||
}
|
||||
|
||||
public static int Get10()
|
||||
public static int Get(double roundValue = 10.0)
|
||||
{
|
||||
return (int)(Math.Round(Get() / 10.0) * 10.0);
|
||||
return (int)(Math.Round(Get() / roundValue) * roundValue);
|
||||
}
|
||||
|
||||
public static void Set(int brightness)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue