Skip to content

Commit 66597cf

Browse files
Apply suggestion from @DarthAffe (add all LEDs in a line with default key-size of 19mm)
Co-authored-by: DarthAffe <darthaffe@wyrez.org>
1 parent cf1cb4a commit 66597cf

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

RGB.NET.Devices.Logitech/PerKey/LogitechPerKeyRGBDevice.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ internal LogitechPerKeyRGBDevice(LogitechRGBDeviceInfo info, IUpdateQueue update
3434

3535
private void InitializeLayout()
3636
{
37+
int pos = 0;
38+
3739
foreach ((LedId ledId, LogitechLedId mapping) in _ledMapping)
38-
{
39-
// TODO: Impove layout (curently places them in a grid)
40-
AddLed(ledId, new Point(0, 0), new Size(10, 10));
41-
}
40+
AddLed(ledId, new Point(pos++ * 19, 0), new Size(19, 19));
4241
}
4342

4443
/// <inheritdoc />

0 commit comments

Comments
 (0)