mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 14:14:17 -04:00
Fix LightSalt build errors on Windows
This commit is contained in:
@@ -49,6 +49,13 @@ enum
|
||||
LIGHTSALT_MODE_MAXIMUM
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
LIGHTSALT_SETS_MAX = 4,
|
||||
LIGHTSALT_ROWS_MAX = 9,
|
||||
LIGHTSALT_COLUMNS_MAX = 10
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
LIGHTSALT_SPEED_MINIMUM = 0x01,
|
||||
|
||||
@@ -396,7 +396,7 @@ void RGBController_LightSalt::DeviceUpdateColors(bool save)
|
||||
int rows = table.led.rows;
|
||||
int columns = table.led.columns;
|
||||
|
||||
RGBColor colors_data[sets][rows][columns];
|
||||
RGBColor colors_data[LIGHTSALT_SETS_MAX][LIGHTSALT_ROWS_MAX][LIGHTSALT_COLUMNS_MAX];
|
||||
memset(colors_data, 0x00, sizeof(colors_data));
|
||||
|
||||
for(int led_idx = 0; led_idx < table.led.count; led_idx++)
|
||||
|
||||
Reference in New Issue
Block a user