If our colour components are all less than (20 / 255), call it 0 and move on.
Signed-off-by: Daniel Stone <[email protected]> --- clients/smoke.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/smoke.c b/clients/smoke.c index 42540d0..f25a657 100644 --- a/clients/smoke.c +++ b/clients/smoke.c @@ -172,6 +172,8 @@ static int render(struct smoke *smoke, struct motion *motion, c = (int) (s[x] * 800); if (c > 255) c = 255; + if (c < 20) + c = 0; a = c; if (a < 0x33) a = 0x33; -- 1.7.10.4 _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
