Fixed some more code issues

This commit is contained in:
DarthAffe committed 2017-01-05 16:50:57 +01:00
1 parent d741318462
commit 619b389f7d
5 files changed
+16 -6

No files matched your search

+3
View File
@@ -15,6 +15,9 @@ namespace CUE.NET.Groups
{
#region Properties & Fields
/// <summary>
/// Gets the strongly-typed target used for the effect.
/// </summary>
protected override ILedGroup EffectTarget => this;
/// <summary>
+4
View File
@@ -98,6 +98,10 @@ namespace CUE.NET.Groups
#region Methods
/// <summary>
/// Gets a list containing all LEDs of this group.
/// </summary>
/// <returns>The list containing all LEDs of this group.</returns>
public override IEnumerable<CorsairLed> GetLeds()
{
return _ledCache ?? (_ledCache = Device.Where(x => RectangleHelper.CalculateIntersectPercentage(x.LedRectangle, Rectangle) >= MinOverlayPercentage).ToList());