Skip to content

Commit

Permalink
Update GilbertCurve.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Feb 3, 2025
1 parent 3a47ffb commit 825a9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nQuant.Master/GilbertCurve.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 825a9d4

Please sign in to comment.