mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-10 20:46:24 +00:00
Fixed wrong device-rectangle initialize
This commit is contained in:
1 parent
69a9a122d0
commit
c611675355
5 files changed
+13
-4
No files matched your search
@@ -37,7 +37,7 @@ namespace CUE.NET.Devices.Generic
|
||||
/// <summary>
|
||||
/// Gets the rectangle containing all LEDs of the device.
|
||||
/// </summary>
|
||||
public RectangleF DeviceRectangle { get; }
|
||||
public RectangleF DeviceRectangle { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a dictionary containing all LEDs of the device.
|
||||
@@ -139,8 +139,6 @@ namespace CUE.NET.Devices.Generic
|
||||
protected AbstractCueDevice(IDeviceInfo info)
|
||||
{
|
||||
this.DeviceInfo = info;
|
||||
|
||||
DeviceRectangle = RectangleHelper.CreateRectangleFromRectangles((this).Select(x => x.LedRectangle));
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -152,7 +150,10 @@ namespace CUE.NET.Devices.Generic
|
||||
/// <summary>
|
||||
/// Initializes the device.
|
||||
/// </summary>
|
||||
public abstract void Initialize();
|
||||
public virtual void Initialize()
|
||||
{
|
||||
DeviceRectangle = RectangleHelper.CreateRectangleFromRectangles((this).Select(x => x.LedRectangle));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the LED-Object with the specified id.
|
||||
|
||||
Reference in new issue
Block a user