From 5bc0f3f05a856c839470942f9a8a1d3dbdc2ffce Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 7 Jan 2017 16:27:39 -0800 Subject: sparkler: move page clear before all particles ops --- modules/sparkler/sparkler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/sparkler/sparkler.c b/modules/sparkler/sparkler.c index de2123e..0bb0fcf 100644 --- a/modules/sparkler/sparkler.c +++ b/modules/sparkler/sparkler.c @@ -35,9 +35,9 @@ static void sparkler(fb_fragment_t *fragment) initialized = 1; } - particles_age(particles); memset(buf, 0, ((fragment->width << 2) + fragment->stride) * fragment->height); + particles_age(particles); particles_draw(particles, fragment); particles_sim(particles); particles_add_particles(particles, NULL, &simple_ops, INIT_PARTS / 4); -- cgit v1.2.3