mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-03 20:23:11 -04:00
Implement QMK OpenRGB Procotol
This commit squashes commits by:
Kasper <ofek4430@gmail.com>
jath03 <jackthughes@yahoo.com>
Adam Honse <calcprogrammer1@gmail.com>
Commits squashed and amended for code style by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
@@ -224,7 +224,7 @@ void DeviceView::setController(RGBController * controller_ptr)
|
||||
unsigned int map_idx = led_y * map->width + led_x;
|
||||
unsigned int color_idx = map->map[map_idx] + controller->zones[zone_idx].start_idx;
|
||||
|
||||
if(color_idx != 0xFFFFFFFF && color_idx < led_pos.size())
|
||||
if(map->map[map_idx] != 0xFFFFFFFF && color_idx < led_pos.size())
|
||||
{
|
||||
led_pos[color_idx].matrix_x = (zone_pos[zone_idx].matrix_x + led_x + ledPadding) * atom;
|
||||
led_pos[color_idx].matrix_y = current_y + (led_y + ledPadding) * atom;
|
||||
|
||||
Reference in New Issue
Block a user