From 1298f59d5aa54818bac68f569ea9cfd70b77e693 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Thu, 5 Jan 2017 15:00:39 +0100 Subject: [PATCH] Fixed references in the ambilighte xample to prevent build-errors on the build-server --- .../Example_Ambilight_full/AbstractAmbilightBrush.cs | 5 +++-- .../Example_Ambilight_full/Example_Ambilight_full.csproj | 6 +++--- Examples/Ambilight/Example_Ambilight_full/packages.config | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Examples/Ambilight/Example_Ambilight_full/AbstractAmbilightBrush.cs b/Examples/Ambilight/Example_Ambilight_full/AbstractAmbilightBrush.cs index 6111808..27f5ce6 100644 --- a/Examples/Ambilight/Example_Ambilight_full/AbstractAmbilightBrush.cs +++ b/Examples/Ambilight/Example_Ambilight_full/AbstractAmbilightBrush.cs @@ -84,8 +84,9 @@ namespace Example_Ambilight_full protected override CorsairColor FinalizeColor(CorsairColor color) { - if (Math.Abs(Settings.Gamma - 1f) > float.Epsilon) - ColorHelper.CorrectGamma(color, Settings.Gamma); + //TODO DarthAffe 05.01.2017: Adopt example once the new version is released! + //if (Math.Abs(Settings.Gamma - 1f) > float.Epsilon) + // ColorHelper.CorrectGamma(color, Settings.Gamma); float lightness = (float)Math.Max((Settings.MinLightness / 100.0), (color.GetHSVValue() * ((double)Brightness < 0.0 ? 0.0f : ((double)Brightness > 1.0 ? 1f : Brightness)))); byte alpha = (byte)((double)color.A * ((double)Opacity < 0.0 ? 0.0 : ((double)Opacity > 1.0 ? 1.0 : (double)Opacity))); diff --git a/Examples/Ambilight/Example_Ambilight_full/Example_Ambilight_full.csproj b/Examples/Ambilight/Example_Ambilight_full/Example_Ambilight_full.csproj index f7bfc8c..3e7b809 100644 --- a/Examples/Ambilight/Example_Ambilight_full/Example_Ambilight_full.csproj +++ b/Examples/Ambilight/Example_Ambilight_full/Example_Ambilight_full.csproj @@ -42,7 +42,7 @@ - ..\..\..\packages\CUE.NET.1.1.0.3-CI00000\lib\net45\CUE.NET.dll + ..\..\..\packages\CUE.NET.1.1.0.2\lib\net45\CUE.NET.dll True @@ -152,12 +152,12 @@ - + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - +