Commit f77553d1 authored by Adam Honse's avatar Adam Honse

Treat matrix devices as single zone for now

parent 9b167ae2
......@@ -1433,15 +1433,14 @@ void Visualizer::LEDUpdateThread( unsigned int q )
{
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;
// OpenRGB doesn't yet have matrix mapping after reworking controller layout
// For now, just treat matrix devices as single zones
case ZONE_TYPE_MATRIX:
for (int r = 0; r < rgb_controllers[c]->zones[z].leds_count; r++)
{
rgb_controllers[c]->zones[z].colors[r] = pixels_out->pixels[ROW_IDX_SINGLE_COLOR][0];
}
break;
case ZONE_TYPE_SINGLE:
for (int r = 0; r < rgb_controllers[c]->zones[z].leds_count; r++)
......
......@@ -203,7 +203,7 @@ void KeyboardVisDlg::SetVisualizer(Visualizer* v)
for(int zone_idx = 0; zone_idx < vis_ptr->rgb_controllers[dev_idx]->zones.size(); zone_idx++)
{
ui->list_Devices->addItem(QString::fromStdString(vis_ptr->rgb_controllers[dev_idx]->zones[zone_idx].name));
ui->list_Devices->addItem(QString::fromStdString(vis_ptr->rgb_controllers[dev_idx]->zones[zone_idx].name) + " Size: " + QString::fromStdString(std::to_string((vis_ptr->rgb_controllers[dev_idx]->zones[zone_idx].leds_count))));
}
}
}
......
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