mirror of
https://github.com/Ellpeck/Illumilib.git
synced 2024-05-14 13:18:45 +02:00
Compare commits
2 commits
9a5391573b
...
e45344d211
Author | SHA1 | Date | |
---|---|---|---|
Ell | e45344d211 | ||
Ell | c3e7d56248 |
|
@ -11,7 +11,7 @@
|
|||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<PackageIcon>Logo.png</PackageIcon>
|
||||
<VersionPrefix>1.2.3</VersionPrefix>
|
||||
<VersionPrefix>1.2.4</VersionPrefix>
|
||||
<NoWarn>NU1701</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -26,10 +26,6 @@ namespace Illumilib.System {
|
|||
}
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
// no op
|
||||
}
|
||||
|
||||
public override void SetAllLighting(float r, float g, float b) {
|
||||
foreach (var device in this.devices) {
|
||||
device.SetAllColors(r, g, b);
|
||||
|
|
|
@ -5,9 +5,11 @@ namespace Illumilib.System {
|
|||
|
||||
public abstract LightingType Type { get; }
|
||||
|
||||
public abstract bool Initialize();
|
||||
~LightingSystem() {
|
||||
this.Dispose();
|
||||
}
|
||||
|
||||
public abstract void Dispose();
|
||||
public abstract bool Initialize();
|
||||
|
||||
public abstract void SetAllLighting(float r, float g, float b);
|
||||
|
||||
|
@ -21,5 +23,9 @@ namespace Illumilib.System {
|
|||
|
||||
public abstract void SetMouseLighting(float r, float g, float b);
|
||||
|
||||
public virtual void Dispose() {
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -18,6 +18,7 @@ namespace Illumilib.System {
|
|||
}
|
||||
|
||||
public override void Dispose() {
|
||||
base.Dispose();
|
||||
this.ClearBitmap();
|
||||
LogitechGsdk.LogiLedShutdown();
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ namespace Illumilib.System {
|
|||
}
|
||||
|
||||
public override void Dispose() {
|
||||
base.Dispose();
|
||||
this.chroma.UninitializeAsync();
|
||||
this.effectOutdated = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue