mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-20 15:45:05 -04:00
Move device view above other controls, begin working on matrix display
This commit is contained in:
1 parent
d3993547c3
commit
f787c5e63f
2 files changed
+254
-234
No files matched your search
@@ -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