mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Fixed a huge memory leak
This was caused by a huge design-fail and needs some serious rethinking/rework
This commit is contained in:
parent
b4c10aa0f4
commit
dce1142bac
@ -148,8 +148,8 @@ namespace RGB.NET.Core
|
|||||||
private Rectangle GetDeviceLedLocation(Led led, Point extraOffset = null)
|
private Rectangle GetDeviceLedLocation(Led led, Point extraOffset = null)
|
||||||
{
|
{
|
||||||
return extraOffset != null
|
return extraOffset != null
|
||||||
? new Rectangle(led.LedRectangle.Location + led.Device.Location + extraOffset, led.LedRectangle.Size)
|
? new Rectangle(led.LedRectangle.Location + led.Device.Location + extraOffset, new Size(led.LedRectangle.Size.Width, led.LedRectangle.Size.Height))
|
||||||
: new Rectangle(led.LedRectangle.Location + led.Device.Location, led.LedRectangle.Size);
|
: new Rectangle(led.LedRectangle.Location + led.Device.Location, new Size(led.LedRectangle.Size.Width, led.LedRectangle.Size.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user