From a196d2a0a4a5832147f0d498631dcb74149c9377 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Mon, 8 May 2023 22:07:49 +0200 Subject: [PATCH] Changed the calculation mode of the SolidColor-brush to absolute for performance reasons --- RGB.NET.Core/Rendering/Brushes/SolidColorBrush.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RGB.NET.Core/Rendering/Brushes/SolidColorBrush.cs b/RGB.NET.Core/Rendering/Brushes/SolidColorBrush.cs index 158705c..02f8e2d 100644 --- a/RGB.NET.Core/Rendering/Brushes/SolidColorBrush.cs +++ b/RGB.NET.Core/Rendering/Brushes/SolidColorBrush.cs @@ -32,6 +32,8 @@ public sealed class SolidColorBrush : AbstractBrush public SolidColorBrush(Color color) { this.Color = color; + + CalculationMode = RenderMode.Absolute; } #endregion