Skip to content

Commit 67a3590

Browse files
authored
Added support for Razer Headsets (#34)
* Update LICENSE * New installer * Change gitignore * Update to a prerelease version of Colore * Added support for Razer Headsets
1 parent 090fbc3 commit 67a3590

21 files changed

Lines changed: 4626 additions & 210 deletions

Ambilight.sln

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,28 @@ VisualStudioVersion = 16.0.30225.117
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ambilight", "Ambilight\Ambilight.csproj", "{3705D85C-E977-4912-A3F4-54D09EB45EFC}"
77
EndProject
8+
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "Installer", "Installer\Installer.vdproj", "{057FBCC5-792A-4B06-BCD2-E7A0A0BF8495}"
9+
EndProject
810
Global
911
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1012
Debug|Any CPU = Debug|Any CPU
13+
Debug|x86 = Debug|x86
1114
Release|Any CPU = Release|Any CPU
15+
Release|x86 = Release|x86
1216
EndGlobalSection
1317
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1418
{3705D85C-E977-4912-A3F4-54D09EB45EFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1519
{3705D85C-E977-4912-A3F4-54D09EB45EFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{3705D85C-E977-4912-A3F4-54D09EB45EFC}.Debug|x86.ActiveCfg = Debug|Any CPU
21+
{3705D85C-E977-4912-A3F4-54D09EB45EFC}.Debug|x86.Build.0 = Debug|Any CPU
1622
{3705D85C-E977-4912-A3F4-54D09EB45EFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
1723
{3705D85C-E977-4912-A3F4-54D09EB45EFC}.Release|Any CPU.Build.0 = Release|Any CPU
24+
{3705D85C-E977-4912-A3F4-54D09EB45EFC}.Release|x86.ActiveCfg = Release|Any CPU
25+
{3705D85C-E977-4912-A3F4-54D09EB45EFC}.Release|x86.Build.0 = Release|Any CPU
26+
{057FBCC5-792A-4B06-BCD2-E7A0A0BF8495}.Debug|Any CPU.ActiveCfg = Debug
27+
{057FBCC5-792A-4B06-BCD2-E7A0A0BF8495}.Debug|x86.ActiveCfg = Debug
28+
{057FBCC5-792A-4B06-BCD2-E7A0A0BF8495}.Release|Any CPU.ActiveCfg = Release
29+
{057FBCC5-792A-4B06-BCD2-E7A0A0BF8495}.Release|x86.ActiveCfg = Release
1830
EndGlobalSection
1931
GlobalSection(SolutionProperties) = preSolution
2032
HideSolutionNode = FALSE

Ambilight/Ambilight.csproj

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<NuGetPackageImportStamp>
1717
</NuGetPackageImportStamp>
1818
<TargetFrameworkProfile />
19-
<PublishUrl>E:\GH\Releases\RazerAmbilight\</PublishUrl>
19+
<PublishUrl>C:\Users\nicoj\RiderProjects\RazerAmbilight\release\</PublishUrl>
2020
<Install>true</Install>
2121
<InstallFrom>Disk</InstallFrom>
2222
<UpdateEnabled>false</UpdateEnabled>
@@ -28,11 +28,11 @@
2828
<MapFileExtensions>false</MapFileExtensions>
2929
<TargetCulture>en</TargetCulture>
3030
<ProductName>Ambiligth for Razer Keyboards</ProductName>
31-
<PublisherName>Sancas</PublisherName>
31+
<PublisherName>Nico Jeske</PublisherName>
3232
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
3333
<AutorunEnabled>true</AutorunEnabled>
34-
<ApplicationRevision>4</ApplicationRevision>
35-
<ApplicationVersion>1.4.0.%2a</ApplicationVersion>
34+
<ApplicationRevision>5</ApplicationRevision>
35+
<ApplicationVersion>2.4.0.%2a</ApplicationVersion>
3636
<UseApplicationTrust>false</UseApplicationTrust>
3737
<PublishWizardCompleted>true</PublishWizardCompleted>
3838
<BootstrapperEnabled>true</BootstrapperEnabled>
@@ -69,13 +69,14 @@
6969
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
7070
</PropertyGroup>
7171
<PropertyGroup>
72-
<SignManifests>false</SignManifests>
72+
<SignManifests>true</SignManifests>
7373
</PropertyGroup>
7474
<PropertyGroup>
75-
<ManifestCertificateThumbprint>A5C545B202B71D9711F987C62BF1C7FC5C1820D8</ManifestCertificateThumbprint>
75+
<ManifestCertificateThumbprint>50AB1BEC0F68DF70AC56EEC4C1F0F011F932A595</ManifestCertificateThumbprint>
7676
</PropertyGroup>
7777
<PropertyGroup>
78-
<ManifestKeyFile>Ambilight_1_TemporaryKey.pfx</ManifestKeyFile>
78+
<ManifestKeyFile>
79+
</ManifestKeyFile>
7980
</PropertyGroup>
8081
<PropertyGroup>
8182
<SignAssembly>false</SignAssembly>
@@ -87,8 +88,9 @@
8788
<Reference Include="AutoUpdater.NET, Version=1.6.3.0, Culture=neutral, PublicKeyToken=501435c91b35f4bc, processorArchitecture=MSIL">
8889
<HintPath>..\packages\Autoupdater.NET.Official.1.6.3\lib\net45\AutoUpdater.NET.dll</HintPath>
8990
</Reference>
90-
<Reference Include="Corale.Colore, Version=5.2.0.0, Culture=neutral, processorArchitecture=MSIL">
91-
<HintPath>..\packages\Colore.5.2.0\lib\net35\Corale.Colore.dll</HintPath>
91+
<Reference Include="Colore, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null">
92+
<HintPath>..\packages\Colore.6.0.0-rc0014\lib\net452\Colore.dll</HintPath>
93+
<Private>True</Private>
9294
</Reference>
9395
<Reference Include="Costura, Version=4.1.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
9496
<HintPath>..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll</HintPath>
@@ -103,8 +105,9 @@
103105
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
104106
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
105107
</Reference>
106-
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
107-
<HintPath>..\packages\NLog.4.7.4\lib\net45\NLog.dll</HintPath>
108+
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c">
109+
<HintPath>..\packages\NLog.4.7.5\lib\net45\NLog.dll</HintPath>
110+
<Private>True</Private>
108111
</Reference>
109112
<Reference Include="Polly, Version=7.0.0.0, Culture=neutral, PublicKeyToken=c8a3ffc3f8f825cc, processorArchitecture=MSIL">
110113
<HintPath>..\packages\Polly.7.2.1\lib\net461\Polly.dll</HintPath>
@@ -178,6 +181,8 @@
178181
<Compile Include="GUI\KeyboardSizeControl.Designer.cs">
179182
<DependentUpon>KeyboardSizeControl.cs</DependentUpon>
180183
</Compile>
184+
<Compile Include="Logic\HeadsetLogic.cs" />
185+
<Compile Include="Logic\IDeviceLogic.cs" />
181186
<Compile Include="Logic\KeyboardLogic.cs" />
182187
<Compile Include="Logic\LinkLogic.cs" />
183188
<Compile Include="Logic\LogicManager.cs" />
@@ -205,13 +210,7 @@
205210
<None Include="App.config">
206211
<SubType>Designer</SubType>
207212
</None>
208-
<Content Include="NLog.config">
209-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
210-
<SubType>Designer</SubType>
211-
</Content>
212-
<None Include="NLog.xsd">
213-
<SubType>Designer</SubType>
214-
</None>
213+
<None Include="NLog.config" />
215214
<None Include="packages.config" />
216215
<None Include="Properties\app.manifest" />
217216
<None Include="Properties\Settings.settings">
@@ -222,7 +221,7 @@
222221
<ItemGroup>
223222
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
224223
<Visible>False</Visible>
225-
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 y x64%29</ProductName>
224+
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 und x64%29</ProductName>
226225
<Install>true</Install>
227226
</BootstrapperPackage>
228227
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
@@ -238,6 +237,7 @@
238237
<Content Include="FodyWeavers.xml">
239238
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
240239
</Content>
240+
<Content Include="NLog.xsd" />
241241
</ItemGroup>
242242
<ItemGroup>
243243
<EmbeddedResource Include="GUI\KeyboardSizeControl.resx">

Ambilight/Ambilight.csproj.user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<PublishUrlHistory>C:\Users\sanch\OneDrive\Desktop\PublicacionAmbilight\</PublishUrlHistory>
4+
<PublishUrlHistory>C:\Users\nicoj\RiderProjects\RazerAmbilight\release\|C:\Users\sanch\OneDrive\Desktop\PublicacionAmbilight\</PublishUrlHistory>
55
<InstallUrlHistory />
66
<SupportUrlHistory />
77
<UpdateUrlHistory />

Ambilight/DesktopDuplication/DesktopDuplicatorReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private Bitmap GetNextFrame(Bitmap reusableBitmap)
107107
{
108108
if (_desktopDuplicator == null)
109109
{
110-
_desktopDuplicator = new DesktopDuplicator(0, settings.Monitor);
110+
_desktopDuplicator = new DesktopDuplicator(0, settings.SelectedMonitor);
111111
}
112112

113113
try

Ambilight/GUI/KeyboardSizeControl.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Text;
88
using System.Threading.Tasks;
99
using System.Windows.Forms;
10-
using KeyboardConstants = Corale.Colore.Razer.Keyboard.Constants;
10+
using Colore.Effects.Keyboard;
1111

1212
namespace Ambilight
1313
{
@@ -64,8 +64,8 @@ private void saveBtn_Click(object sender, EventArgs e)
6464

6565
private void defaultButtonClicked(object sender, EventArgs e)
6666
{
67-
this.widthTxt.Text = Corale.Colore.Razer.Keyboard.Constants.MaxColumns.ToString();
68-
this.heightTxt.Text = Corale.Colore.Razer.Keyboard.Constants.MaxRows.ToString();
67+
this.widthTxt.Text = KeyboardConstants.MaxColumns.ToString();
68+
this.heightTxt.Text = KeyboardConstants.MaxRows.ToString();
6969
saveBtn_Click(this, null);
7070
}
7171

Ambilight/GUI/TraySettings.cs

Lines changed: 50 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using System.Threading;
1212
using System.Threading.Tasks;
1313
using System.Windows.Forms;
14+
using Colore.Effects.Keyboard;
1415

1516
namespace Ambilight.GUI
1617
{
@@ -23,14 +24,15 @@ public class TraySettings
2324
public float Saturation { get; private set; }
2425
public int KeyboardWidth { get; private set; }
2526
public int KeyboardHeight { get; private set; }
26-
public bool KeyboardEnabledBool { get; private set; }
27-
public bool MouseEnabledBool { get; private set; }
28-
public bool LinkEnabledBool { get; private set; }
29-
public bool PadEnabledBool { get; private set; }
30-
public bool AmbiModeBool { get; private set; }
31-
public bool UltrawideModeBool { get; private set; }
32-
public bool AutostartEnabledBool { get; private set; }
33-
public int Monitor { get; set; }
27+
public bool KeyboardEnabled { get; private set; }
28+
public bool MouseEnabled { get; private set; }
29+
public bool LinkEnabled { get; private set; }
30+
public bool PadEnabled { get; private set; }
31+
public bool HeadsetEnabled { get; private set; }
32+
public bool AmbiModeEnabled { get; private set; }
33+
public bool UltrawideModeEnabled { get; private set; }
34+
public bool AutostartEnabled { get; private set; }
35+
public int SelectedMonitor { get; set; }
3436

3537
private NotifyIcon notifyIcon;
3638

@@ -39,8 +41,8 @@ public class TraySettings
3941

4042
public TraySettings()
4143
{
42-
KeyboardWidth = Corale.Colore.Razer.Keyboard.Constants.MaxColumns;
43-
KeyboardHeight = Corale.Colore.Razer.Keyboard.Constants.MaxRows;
44+
KeyboardWidth = KeyboardConstants.MaxColumns;
45+
KeyboardHeight = KeyboardConstants.MaxRows;
4446
loadConfig();
4547
Thread trayThread = new Thread(InitializeTray);
4648
trayThread.Start();
@@ -57,27 +59,27 @@ private void loadConfig()
5759
Saturation = Properties.Settings.Default.saturation;
5860
int _keyboardHeightProperty = Properties.Settings.Default.keyboardHeight;
5961
int _keyboardWidthProperty = Properties.Settings.Default.keyboardWidth;
60-
AutostartEnabledBool = Properties.Settings.Default.autostartEnabled;
61-
Monitor = Properties.Settings.Default.monitor;
62+
AutostartEnabled = Properties.Settings.Default.autostartEnabled;
63+
SelectedMonitor = Properties.Settings.Default.monitor;
6264

6365

6466

65-
if (_keyboardWidthProperty >= 0 && _keyboardWidthProperty < Corale.Colore.Razer.Keyboard.Constants.MaxColumns)
67+
if (_keyboardWidthProperty >= 0 && _keyboardWidthProperty < KeyboardConstants.MaxColumns)
6668
{
6769
KeyboardWidth = _keyboardWidthProperty;
6870
} else
6971
{
7072
logger.Warn("Invalid keyboardWidth changing back to default value");
71-
KeyboardWidth = Corale.Colore.Razer.Keyboard.Constants.MaxColumns;
73+
KeyboardWidth = KeyboardConstants.MaxColumns;
7274
}
7375

74-
if (_keyboardHeightProperty >= 0 && _keyboardHeightProperty < Corale.Colore.Razer.Keyboard.Constants.MaxRows)
76+
if (_keyboardHeightProperty >= 0 && _keyboardHeightProperty < KeyboardConstants.MaxRows)
7577
{
7678
KeyboardHeight = _keyboardHeightProperty;
7779
} else
7880
{
7981
logger.Warn("Invalid keyboardHeight changing back to default value");
80-
KeyboardHeight = Corale.Colore.Razer.Keyboard.Constants.MaxRows;
82+
KeyboardHeight = KeyboardConstants.MaxRows;
8183
}
8284
}
8385
catch (SettingsPropertyNotFoundException)
@@ -86,7 +88,7 @@ private void loadConfig()
8688
Saturation = 1f;
8789
}
8890

89-
logger.Info("Autostart: " + AutostartEnabledBool);
91+
logger.Info("Autostart: " + AutostartEnabled);
9092
logger.Info("Keyboard width: " + KeyboardWidth);
9193
logger.Info("Keyboard height: " + KeyboardHeight);
9294
logger.Info("Max FPS: " + Tickrate);
@@ -102,47 +104,55 @@ private void InitializeTray()
102104
{
103105
EnableMenuItemOnClick(sender, args);
104106
Properties.Settings.Default.keyboardEnabled = (sender as MenuItem).Checked;
105-
KeyboardEnabledBool = (sender as MenuItem).Checked;
107+
KeyboardEnabled = (sender as MenuItem).Checked;
106108
Properties.Settings.Default.Save();
107109
});
108110

109111
MenuItem _mouseEnabled = new MenuItem("Mouse enabled", (sender, args) =>
110112
{
111113
EnableMenuItemOnClick(sender, args);
112114
Properties.Settings.Default.mouseEnabled = (sender as MenuItem).Checked;
113-
MouseEnabledBool = (sender as MenuItem).Checked;
115+
MouseEnabled = (sender as MenuItem).Checked;
114116
Properties.Settings.Default.Save();
115117
});
116118

117119
MenuItem _mousematEnabled = new MenuItem("Mousemat enabled", (sender, args) =>
118120
{
119121
EnableMenuItemOnClick(sender, args);
120122
Properties.Settings.Default.mousematEnabled = (sender as MenuItem).Checked;
121-
PadEnabledBool = (sender as MenuItem).Checked;
123+
PadEnabled = (sender as MenuItem).Checked;
124+
Properties.Settings.Default.Save();
125+
});
126+
127+
MenuItem _headsetEnabled = new MenuItem("Headset enabled", (sender, args) =>
128+
{
129+
EnableMenuItemOnClick(sender, args);
130+
Properties.Settings.Default.headsetEnabled = (sender as MenuItem).Checked;
131+
HeadsetEnabled = (sender as MenuItem).Checked;
122132
Properties.Settings.Default.Save();
123133
});
124134

125135
MenuItem _linkEnabled = new MenuItem("LinkChroma enabled", (sender, args) =>
126136
{
127137
EnableMenuItemOnClick(sender, args);
128138
Properties.Settings.Default.linkEnabled = (sender as MenuItem).Checked;
129-
LinkEnabledBool = (sender as MenuItem).Checked;
139+
LinkEnabled = (sender as MenuItem).Checked;
130140
Properties.Settings.Default.Save();
131141
});
132142

133143
MenuItem _ambiModeEnabled = new MenuItem("'Real' Ambilight mode", (sender, args) =>
134144
{
135145
EnableMenuItemOnClick(sender, args);
136146
Properties.Settings.Default.ambiEnabled = (sender as MenuItem).Checked;
137-
AmbiModeBool = (sender as MenuItem).Checked;
147+
AmbiModeEnabled = (sender as MenuItem).Checked;
138148
Properties.Settings.Default.Save();
139149
});
140150

141151
MenuItem _ultrawideModeEnabled = new MenuItem("Ultrawide Monitor mode", (sender, args) =>
142152
{
143153
EnableMenuItemOnClick(sender, args);
144154
Properties.Settings.Default.ultrawideEnabled = (sender as MenuItem).Checked;
145-
UltrawideModeBool = (sender as MenuItem).Checked;
155+
UltrawideModeEnabled = (sender as MenuItem).Checked;
146156
Properties.Settings.Default.Save();
147157
});
148158

@@ -151,29 +161,30 @@ private void InitializeTray()
151161
EnableMenuItemOnClick(sender, args);
152162
Properties.Settings.Default.autostartEnabled = (sender as MenuItem).Checked;
153163
changeAutoStart();
154-
AutostartEnabledBool = (sender as MenuItem).Checked;
164+
AutostartEnabled = (sender as MenuItem).Checked;
155165
Properties.Settings.Default.Save();
156166
});
157167

158168
_keyboardEnabled.Checked = Properties.Settings.Default.keyboardEnabled;
159-
KeyboardEnabledBool = Properties.Settings.Default.keyboardEnabled;
169+
KeyboardEnabled = Properties.Settings.Default.keyboardEnabled;
160170
_mouseEnabled.Checked = Properties.Settings.Default.mouseEnabled;
161-
MouseEnabledBool = Properties.Settings.Default.mouseEnabled;
171+
MouseEnabled = Properties.Settings.Default.mouseEnabled;
162172
_mousematEnabled.Checked = Properties.Settings.Default.mousematEnabled;
163-
PadEnabledBool = Properties.Settings.Default.mousematEnabled;
173+
PadEnabled = Properties.Settings.Default.mousematEnabled;
174+
_headsetEnabled.Checked = Properties.Settings.Default.headsetEnabled;
175+
HeadsetEnabled = Properties.Settings.Default.headsetEnabled;
164176
_linkEnabled.Checked = Properties.Settings.Default.linkEnabled;
165-
LinkEnabledBool = Properties.Settings.Default.linkEnabled;
177+
LinkEnabled = Properties.Settings.Default.linkEnabled;
166178
_ambiModeEnabled.Checked = Properties.Settings.Default.ambiEnabled;
167-
AmbiModeBool = Properties.Settings.Default.ambiEnabled;
179+
AmbiModeEnabled = Properties.Settings.Default.ambiEnabled;
168180
_ultrawideModeEnabled.Checked = Properties.Settings.Default.ambiEnabled;
169-
UltrawideModeBool = Properties.Settings.Default.ultrawideEnabled;
181+
UltrawideModeEnabled = Properties.Settings.Default.ultrawideEnabled;
170182
_autostart.Checked = checkAutostart(Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "/Ambilight.lnk");
171-
AutostartEnabledBool = Properties.Settings.Default.autostartEnabled;
183+
AutostartEnabled = Properties.Settings.Default.autostartEnabled;
172184

173185
var components = new System.ComponentModel.Container();
174186
var contextMenu = new ContextMenu();
175187

176-
contextMenu.MenuItems.Add("Exit", (sender, args) => { notifyIcon.Dispose();Environment.Exit(0); });
177188
contextMenu.MenuItems.Add("Change max fps", ChangeTickrateHandler);
178189
contextMenu.MenuItems.Add("Change Saturation", ChangeSaturationHandler);
179190
contextMenu.MenuItems.Add("Set Manual keyboard size", changeKeyboardSizeHandler);
@@ -187,7 +198,12 @@ private void InitializeTray()
187198
contextMenu.MenuItems.Add(_keyboardEnabled);
188199
contextMenu.MenuItems.Add(_mouseEnabled);
189200
contextMenu.MenuItems.Add(_mousematEnabled);
201+
contextMenu.MenuItems.Add(_headsetEnabled);
190202
contextMenu.MenuItems.Add(_linkEnabled);
203+
204+
contextMenu.MenuItems.Add("-");
205+
contextMenu.MenuItems.Add("Exit", (sender, args) => { notifyIcon.Dispose();Environment.Exit(0); });
206+
191207

192208
notifyIcon = new NotifyIcon(components)
193209
{
@@ -199,6 +215,7 @@ private void InitializeTray()
199215
logger.Info("Keyboard Enabled: " + _keyboardEnabled.Checked);
200216
logger.Info("Mouse Enabled: " + _mouseEnabled.Checked);
201217
logger.Info("Mousemat Enabled: " + _mousematEnabled.Checked);
218+
logger.Info("Headset Enabled: " + _headsetEnabled.Checked);
202219
logger.Info("ChromaLink Enabled: " + _linkEnabled.Checked);
203220
logger.Info("Ambilight mode: " + _ambiModeEnabled.Checked);
204221
logger.Info("Ultrawide mode: " + _ultrawideModeEnabled.Checked);
@@ -285,7 +302,7 @@ private void keyboardSizeChangedHandler(object sender, EventArgs e)
285302
int KeyboardWidthSetting = k.GetTxtWidth();
286303
int KeyboardHeightSetting = k.GetTxtHeight();
287304

288-
if (KeyboardWidthSetting < 0 || KeyboardWidthSetting > Corale.Colore.Razer.Keyboard.Constants.MaxColumns || KeyboardHeightSetting < 0 || KeyboardHeightSetting > Corale.Colore.Razer.Keyboard.Constants.MaxRows)
305+
if (KeyboardWidthSetting < 0 || KeyboardWidthSetting > KeyboardConstants.MaxColumns || KeyboardHeightSetting < 0 || KeyboardHeightSetting > KeyboardConstants.MaxRows)
289306
{
290307
k.errorReport("Input invalid");
291308
return;

0 commit comments

Comments
 (0)