summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-01-07 16:27:39 -0800
committerVito Caputo <vcaputo@gnugeneration.com>2017-01-07 16:27:39 -0800
commit5bc0f3f05a856c839470942f9a8a1d3dbdc2ffce (patch)
treea48780d5ff39f3a6221255e0d75ee2d00a392d8b /modules
parentb0cee37e581a20c06ff8225fde8b8de95f68d09e (diff)
sparkler: move page clear before all particles ops
Diffstat (limited to 'modules')
-rw-r--r--modules/sparkler/sparkler.c2
1 files changed, 1 insertions, 1 deletions
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);
© All Rights Reserved