From 1707b8deede88e643035add6388d8c9337330d55 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Tue, 10 Jul 2018 20:09:43 +0200 Subject: [PATCH] Fixed SyncLed assignment in SyncBrush --- RGBSync+/Brushes/SyncBrush.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RGBSync+/Brushes/SyncBrush.cs b/RGBSync+/Brushes/SyncBrush.cs index 9f64245..b3d7987 100644 --- a/RGBSync+/Brushes/SyncBrush.cs +++ b/RGBSync+/Brushes/SyncBrush.cs @@ -37,6 +37,9 @@ namespace RGBSyncPlus.Brushes protected override Color GetColorAtPoint(Rectangle rectangle, BrushRenderTarget renderTarget) { + if(_syncLed == null) + _syncLed = _syncGroup.SyncLed?.GetLed(); + if (renderTarget.Led == _syncLed) return Color.Transparent;