Skip to content

Commit 4ce76c8

Browse files
committed
remove restore color for RoccatDevice
1 parent f0aade8 commit 4ce76c8

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

Project-Aurora/Project-Aurora/Devices/Roccat/RoccatDevice.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -241,17 +241,6 @@ public override void Reset()
241241

242242
private void Restoregeneric()
243243
{
244-
//Workaround
245-
//Global.logger.LogLine("restore Roccat generic");
246-
Color restore_fallback = Global.Configuration.VarRegistry.GetVariable<RealColor>(
247-
$"{DeviceName}_restore_fallback").GetDrawingColor();
248-
restore_fallback = Color.FromArgb(255, ColorUtils.MultiplyColorByScalar(restore_fallback, restore_fallback.A / 255.0D));
249-
250-
//Global.logger.LogLine("restore Roccat generic" + restore_fallback + restore_fallback.R + restore_fallback.G + restore_fallback.B);
251-
talkFX.SetLedRgb(Zone.Event, KeyEffect.On, Speed.Fast, new Roccat_Talk.TalkFX.Color(restore_fallback.R, restore_fallback.G, restore_fallback.B));
252-
253-
previous_peripheral_Color = Color.FromArgb(restore_fallback.R, restore_fallback.G, restore_fallback.B);
254-
255244
//.RestoreLedRgb() Does not work
256245
talkFX.RestoreLedRgb();
257246
}

0 commit comments

Comments
 (0)