mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Dimming init fallback
This commit is contained in:
@@ -45,13 +45,17 @@ namespace GHelper.Display
|
||||
{
|
||||
brightnessTimer.Stop();
|
||||
|
||||
if (_init)
|
||||
{
|
||||
RunSplendid(SplendidCommand.Init, 4);
|
||||
_init = false;
|
||||
}
|
||||
|
||||
if (RunSplendid(SplendidCommand.DimmingVisual, 0, (int)(40 + _brightness * 0.6))) return;
|
||||
|
||||
if (_init)
|
||||
{
|
||||
_init = false;
|
||||
RunSplendid(SplendidCommand.Init);
|
||||
RunSplendid(SplendidCommand.Init, 4);
|
||||
if (RunSplendid(SplendidCommand.DimmingVisual, 0, (int)(40 + _brightness * 0.6))) return;
|
||||
}
|
||||
|
||||
// GammaRamp Fallback
|
||||
SetGamma(_brightness);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user