Skip to content

Commit 73ea4a5

Browse files
authored
Add files via upload
1 parent a80bd51 commit 73ea4a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nQuant.Master/GilbertCurve.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private GilbertCurve(int width, int height, int[] pixels, Color[] palette, int[]
7373
errorq = new();
7474
this.weight = Math.Abs(weight);
7575
margin = weight < .0025 ? 12 : weight < .004 ? 8 : 6;
76-
sortedByYDiff = saliencies != null && palette.Length >= 128 && weight < .08 && weight >= .02 && (!m_hasAlpha || weight < .18);
76+
sortedByYDiff = saliencies != null && palette.Length >= 128 && weight >= .02 && (!m_hasAlpha || weight < .18);
7777
beta = palette.Length > 4 ? (float) (.6f - .00625f * palette.Length) : 1;
7878
if (palette.Length > 4) {
7979
var boundary = .005 - .0000625 * palette.Length;

0 commit comments

Comments
 (0)