mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 13:06:24 +00:00
Added base class for location/size-handling and refactored devices and leds to make use of it
This commit is contained in:
1 parent
6a4ebb3d2a
commit
d44223ee6a
21 files changed
+349
-322
No files matched your search
@@ -52,13 +52,7 @@ namespace RGB.NET.Devices.CoolerMaster
|
||||
public void Initialize(IDeviceUpdateTrigger updateTrigger)
|
||||
{
|
||||
InitializeLayout();
|
||||
|
||||
if (Size == Size.Invalid)
|
||||
{
|
||||
Rectangle ledRectangle = new(this.Select(x => x.LedRectangle));
|
||||
Size = ledRectangle.Size + new Size(ledRectangle.Location.X, ledRectangle.Location.Y);
|
||||
}
|
||||
|
||||
|
||||
UpdateQueue = new CoolerMasterUpdateQueue(updateTrigger, DeviceInfo.DeviceIndex);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user