Include the complete opaque c0 and c1 color in the dithered gradient (two more steps)

This commit is contained in:
David Capello 2017-06-09 18:56:39 -03:00
parent 6c4218a8ac
commit e53fd6f94c

View File

@ -100,7 +100,7 @@ void render_rgba_linear_gradient(
q -= u;
double f = (q * w) / wmag;
*it = (f*matrix.maxValue() < matrix(y, x) ? c0: c1);
*it = (f*(matrix.maxValue()+2) < matrix(y, x)+1 ? c0: c1);
}
}
}