mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Added OLED model detection
This commit is contained in:
@@ -391,7 +391,7 @@ public static class AppConfig
|
||||
|
||||
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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user