diff options
| author | Vito Caputo <vcaputo@gnugeneration.com> | 2017-02-08 20:03:38 -0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-08 20:03:38 -0800 | 
| commit | 8563edd058bb5e564b5e6c2bafde6636b3fce6ee (patch) | |
| tree | d3232ac628eee1517e258d9b512b0f9a838e9f02 /src/modules/sparkler/sparkler.c | |
| parent | 9d032314e9db794dc88889bc24bf50bbafc3ec8d (diff) | |
| parent | b35ba71b6de341f7b87beb3bc078600f3d191612 (diff) | |
Consolidate fb_fragment_t interactions
sparkler and stars both cleared fragments and drew individual pixels into fragments, add that functionality to fb.h and cleanup sparkler and stars accordingly.
Diffstat (limited to 'src/modules/sparkler/sparkler.c')
| -rw-r--r-- | src/modules/sparkler/sparkler.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/modules/sparkler/sparkler.c b/src/modules/sparkler/sparkler.c index 0bb0fcf..e2ff76e 100644 --- a/src/modules/sparkler/sparkler.c +++ b/src/modules/sparkler/sparkler.c @@ -35,7 +35,7 @@ static void sparkler(fb_fragment_t *fragment)  		initialized = 1;  	} -	memset(buf, 0, ((fragment->width << 2) + fragment->stride) * fragment->height); +	fb_fragment_zero(fragment);  	particles_age(particles);  	particles_draw(particles, fragment); | 
