mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Compare commits
No commits in common. "02843705a849c29e7c1078f312b998f4cf36bdee" and "5fc2e34f289edd18ea9d34cb7dd8865dea5e0644" have entirely different histories.
02843705a8
...
5fc2e34f28
@ -12,8 +12,6 @@ namespace RGB.NET.Devices.Asus
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
private readonly IAuraRgbLight[] _lights;
|
||||
|
||||
/// <summary>
|
||||
/// The device to be updated.
|
||||
/// </summary>
|
||||
@ -32,10 +30,6 @@ namespace RGB.NET.Devices.Asus
|
||||
: base(updateTrigger)
|
||||
{
|
||||
this.Device = device;
|
||||
|
||||
this._lights = new IAuraRgbLight[device.Lights.Count];
|
||||
for (int i = 0; i < device.Lights.Count; i++)
|
||||
_lights[i] = device.Lights[i];
|
||||
}
|
||||
|
||||
#endregion
|
||||
@ -65,7 +59,7 @@ namespace RGB.NET.Devices.Asus
|
||||
}
|
||||
else
|
||||
{
|
||||
IAuraRgbLight light = _lights[id];
|
||||
IAuraRgbLight light = keyboard.Lights[id];
|
||||
(_, byte r, byte g, byte b) = value.GetRGBBytes();
|
||||
light.Red = r;
|
||||
light.Green = g;
|
||||
@ -78,7 +72,7 @@ namespace RGB.NET.Devices.Asus
|
||||
foreach ((object key, Color value) in dataSet)
|
||||
{
|
||||
int index = (int)key;
|
||||
IAuraRgbLight light = _lights[index];
|
||||
IAuraRgbLight light = Device.Lights[index];
|
||||
|
||||
(_, byte r, byte g, byte b) = value.GetRGBBytes();
|
||||
light.Red = r;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user