[PATCH weston 04/11] smoke: Ramp down a little more aggressively

Daniel Stone daniel at fooishbar.org
Tue Nov 6 22:51:38 PST 2012


If our colour components are all less than (20 / 255), call it 0 and
move on.

Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
 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



More information about the wayland-devel mailing list