Fixed code issues

This commit is contained in:
DarthAffe committed 2021-08-01 16:53:21 +02:00
1 parent 7c0a216ccd
commit 4dbeaf802a
25 files changed
+46 -33

No files matched your search

@@ -2,4 +2,5 @@
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=brushes/@EntryIndexedValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=decorators/@EntryIndexedValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=groups_005Cextensions/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=textures_005Cenums/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=textures_005Cenums/@EntryIndexedValue">True</s:Boolean>
</wpf:ResourceDictionary>
@@ -94,8 +94,8 @@ namespace RGB.NET.Presets.Textures.Gradients
/// <summary>
/// Clips the offset and ensures, that it is inside the bounds of the stop list.
/// </summary>
/// <param name="offset"></param>
/// <returns></returns>
/// <param name="offset">The offset to clip.</param>
/// <returns>The clipped offset.</returns>
protected float ClipOffset(float offset)
{
float max = GradientStops.Max(stop => stop.Offset);
@@ -111,7 +111,7 @@ namespace RGB.NET.Presets.Textures.Gradients
/// <param name="offset">The reference offset.</param>
/// <param name="orderedStops">The ordered list of <see cref="GradientStop"/> to choose from.</param>
/// <param name="wrap">Bool indicating if the gradient should be wrapped or not.</param>
/// <returns></returns>
/// <returns>The two <see cref="GradientStop"/>s encapsulating the specified offset.</returns>
protected virtual (GradientStop gsBefore, GradientStop gsAfter) GetEnclosingGradientStops(float offset, LinkedList<GradientStop> orderedStops, bool wrap)
{
LinkedList<GradientStop> gradientStops = new(orderedStops);