mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 00:23:48 +00:00
Include the complete opaque c0 and c1 color in the dithered gradient (two more steps)
This commit is contained in:
parent
6c4218a8ac
commit
e53fd6f94c
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user