Commit 2a28efaa authored by Adam Honse's avatar Adam Honse

Add support for matrix devices in OpenAuraSDK branch, make orange and purple look better

parent fedb65ae
......@@ -983,7 +983,7 @@ void Visualizer::DrawPattern(VISUALIZER_PATTERN pattern, int bright, vis_pixels
break;
case VISUALIZER_PATTERN_SOLID_ORANGE:
DrawSolidColor(bright, 0x000060FF, pixels);
DrawSolidColor(bright, 0x000040FF, pixels);
break;
case VISUALIZER_PATTERN_SOLID_YELLOW:
......@@ -1003,7 +1003,7 @@ void Visualizer::DrawPattern(VISUALIZER_PATTERN pattern, int bright, vis_pixels
break;
case VISUALIZER_PATTERN_SOLID_PURPLE:
DrawSolidColor(bright, 0x00FF0060, pixels);
DrawSolidColor(bright, 0x00FF0040, pixels);
break;
case VISUALIZER_PATTERN_STATIC_GREEN_YELLOW_RED:
......@@ -1441,6 +1441,16 @@ void Visualizer::LEDUpdateThread()
{
switch (rgb_controllers[c]->zones[z].type)
{
case ZONE_TYPE_MATRIX:
for (int r = 0; r < rgb_controllers[c]->zones[z].map.size(); r++)
{
for (int l = 0; l < rgb_controllers[c]->zones[z].map[r].size(); l++)
{
rgb_controllers[c]->colors[rgb_controllers[c]->zones[z].map[r][l]] = pixels_out->pixels[ 2 + r * (62 / rgb_controllers[c]->zones[z].map.size())][l * (256 / rgb_controllers[c]->zones[z].map[r].size())];
}
}
break;
case ZONE_TYPE_SINGLE:
for (int r = 0; r < rgb_controllers[c]->zones[z].map.size(); r++)
{
......@@ -1465,6 +1475,6 @@ void Visualizer::LEDUpdateThread()
rgb_controllers[c]->UpdateLEDs();
}
Sleep(15);
Sleep(delay);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment