Added OLED model detection

This commit is contained in:
Serge
2024-02-24 11:39:50 +01:00
parent 4fd087b19b
commit 2939aa4c43
2 changed files with 3 additions and 3 deletions

View File

@@ -47,9 +47,9 @@ namespace GHelper.Display
}
}
public void SetGamma(int brightness = 100, int contrast = 100)
public void SetGamma(int brightness = 100)
{
var bright = (float)(brightness) / 100;
var bright = Math.Round((float)brightness / 200 + 0.5, 2);
var screenName = ScreenNative.FindLaptopScreen();
if (screenName is null) return;