mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-10 20:46:24 +00:00
OpenRgb - added segments
This commit is contained in:
1 parent
4675349621
commit
1793d26166
8 files changed
+118
-44
No files matched your search
@@ -1,5 +1,4 @@
|
||||
using OpenRGB.NET.Enums;
|
||||
using OpenRGB.NET.Models;
|
||||
using OpenRGB.NET;
|
||||
using RGB.NET.Core;
|
||||
|
||||
namespace RGB.NET.Devices.OpenRGB;
|
||||
@@ -40,15 +39,15 @@ public class OpenRGBZoneDevice : AbstractOpenRGBDevice<OpenRGBDeviceInfo>
|
||||
{
|
||||
Size ledSize = new(19);
|
||||
const int LED_SPACING = 20;
|
||||
LedId initialId = Helper.GetInitialLedIdForDeviceType(DeviceInfo.DeviceType) + _initialLed;
|
||||
LedId initialId = Helper.GetInitialLedIdForDeviceType(DeviceInfo.DeviceType);
|
||||
|
||||
if (_zone.Type == ZoneType.Matrix)
|
||||
{
|
||||
for (int row = 0; row < _zone.MatrixMap.Height; row++)
|
||||
for (int row = 0; row < _zone.MatrixMap!.Height; row++)
|
||||
{
|
||||
for (int column = 0; column < _zone.MatrixMap.Width; column++)
|
||||
for (int column = 0; column < _zone.MatrixMap!.Width; column++)
|
||||
{
|
||||
uint index = _zone.MatrixMap.Matrix[row, column];
|
||||
uint index = _zone.MatrixMap!.Matrix[row, column];
|
||||
|
||||
//will be max value if the position does not have an associated key
|
||||
if (index == uint.MaxValue)
|
||||
|
||||
Reference in new issue
Block a user