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

@@ -391,7 +391,7 @@ public static class AppConfig
public static bool IsOLED() public static bool IsOLED()
{ {
return ContainsModel("OLED") || IsSlash() || ContainsModel("GA402RK"); return ContainsModel("OLED") || IsSlash() || ContainsModel("UX64") || ContainsModel("UX34") || ContainsModel("K360") || ContainsModel("X150");
} }
public static bool IsStrix() public static bool IsStrix()

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(); var screenName = ScreenNative.FindLaptopScreen();
if (screenName is null) return; if (screenName is null) return;