summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-02-03 16:14:04 -0800
committerVito Caputo <vcaputo@gnugeneration.com>2017-02-03 16:14:04 -0800
commitb35ba71b6de341f7b87beb3bc078600f3d191612 (patch)
treec3a1ca2e8765498fbcc098736fcb3523e1224a39 /src/modules
parente0619c5dfa3bc90c2c241f8e330bf4a76a5a003d (diff)
*: use fb_fragment_zero() instead of memset()
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/sparkler/sparkler.c2
-rw-r--r--src/modules/stars/stars.c2
2 files changed, 2 insertions, 2 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);
diff --git a/src/modules/stars/stars.c b/src/modules/stars/stars.c
index 0f6c2d5..2ff9b99 100644
--- a/src/modules/stars/stars.c
+++ b/src/modules/stars/stars.c
@@ -37,7 +37,7 @@ static void stars(fb_fragment_t *fragment)
}
// draw space (or blank the frame, if you prefer)
- memset(fragment->buf, 0, ((fragment->width << 2) + fragment->stride) * fragment->height);
+ fb_fragment_zero(fragment);
// draw stars
for (;;) {
© All Rights Reserved