From d5c9c23adc85be3683a88d0cb08616093796f1f4 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 22 May 2021 19:59:12 +0200 Subject: [PATCH] Fixed clamping of resolution scale setting --- src/ComputeSharp.WinUI/ComputeShaderPanel.Properties.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ComputeSharp.WinUI/ComputeShaderPanel.Properties.cs b/src/ComputeSharp.WinUI/ComputeShaderPanel.Properties.cs index 08b2d42b..06d1bfa8 100644 --- a/src/ComputeSharp.WinUI/ComputeShaderPanel.Properties.cs +++ b/src/ComputeSharp.WinUI/ComputeShaderPanel.Properties.cs @@ -33,7 +33,7 @@ namespace ComputeSharp.WinUI public double ResolutionScale { get => (double)GetValue(ResolutionScaleProperty); - set => SetValue(ResolutionScaleProperty, Math.Clamp(value, 0.0, 1.0)); + set => SetValue(ResolutionScaleProperty, Math.Clamp(value, 0.1, 1.0)); } ///