Skip to content

Commit

Permalink
Fixed config crash, fixed kb layout error
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpup committed Jun 10, 2016
1 parent cb876f7 commit bc53719
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Project-Aurora/EffectsEngine/Effects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,16 @@ public static int canvas_biggest
}
}

public static readonly Devices.DeviceKeys[] allKeys = Enum.GetValues(typeof(Devices.DeviceKeys)).Cast<Devices.DeviceKeys>().ToArray();
//public static readonly Devices.DeviceKeys[] allKeys = Enum.GetValues(typeof(Devices.DeviceKeys)).Cast<Devices.DeviceKeys>().ToArray();

private static Dictionary<Devices.DeviceKeys, Bitmaping> bitmap_map = new Dictionary<Devices.DeviceKeys, Bitmaping>();

private static Dictionary<Devices.DeviceKeys, Color> keyColors = new Dictionary<Devices.DeviceKeys, Color>();

public Effects()
{
Devices.DeviceKeys[] allKeys = bitmap_map.Keys.ToArray();

foreach (Devices.DeviceKeys key in allKeys)
{
keyColors.Add(key, Color.FromArgb(0, 0, 0));
Expand Down Expand Up @@ -239,6 +241,7 @@ public void PushFrame(EffectFrame frame)
background *= Global.Configuration.global_brightness;

Dictionary<DeviceKeys, Color> keyColors = new Dictionary<DeviceKeys, Color>();
Devices.DeviceKeys[] allKeys = bitmap_map.Keys.ToArray();

foreach (Devices.DeviceKeys key in allKeys)
{
Expand Down
3 changes: 3 additions & 0 deletions Project-Aurora/Settings/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ public Configuration()
overwatch_settings = new OverwatchSettings();
pd2_settings = new PD2Settings();
division_settings = new TheDivisionSettings();
lol_settings = new LoLSettings();
hotlinemiami_settings = new HMSettings();
talosprinciple_settings = new TalosPrincipleSettings();

//Overlay Settings
volume_overlay_settings = new VolumeOverlaySettings();
Expand Down

0 comments on commit bc53719

Please sign in to comment.