From 825a9d46fd6ce04d81a93ac5b37663edefb171da Mon Sep 17 00:00:00 2001 From: Miller Cy Chan Date: Mon, 3 Feb 2025 23:17:30 +0800 Subject: [PATCH] Update GilbertCurve.cs --- nQuant.Master/GilbertCurve.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nQuant.Master/GilbertCurve.cs b/nQuant.Master/GilbertCurve.cs index 2b14f6a..e1c5830 100644 --- a/nQuant.Master/GilbertCurve.cs +++ b/nQuant.Master/GilbertCurve.cs @@ -114,7 +114,7 @@ private void DitherPixel(int x, int y) int a_pix = (int)Math.Min(Byte.MaxValue, Math.Max(error[3], 0.0)); Color c2 = Color.FromArgb(a_pix, r_pix, g_pix, b_pix); - if (saliencies != null) + if (saliencies != null && !sortedByYDiff) { var strength = 1 / 3f; var beta = palette.Length > 8 ? .7f : 1;