mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-05 06:34:25 -04:00
Move device view above other controls, begin working on matrix display
This commit is contained in:
@@ -92,6 +92,13 @@ void DeviceView::paintEvent(QPaintEvent *event)
|
||||
painter.drawRect((col * (box_size + box_margin)), (row * (box_size + box_margin)), box_size, box_size);
|
||||
col++;
|
||||
|
||||
if(((controller->zones[zone_idx].matrix_map != NULL)
|
||||
&&(col >= (controller->zones[zone_idx].matrix_map->width))))
|
||||
{
|
||||
row++;
|
||||
col = 0;
|
||||
}
|
||||
|
||||
if(col > max_cols)
|
||||
{
|
||||
row++;
|
||||
|
||||
Reference in New Issue
Block a user