summaryrefslogtreecommitdiff
path: root/src/modules/stars/stars.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-02-03 16:08:01 -0800
committerVito Caputo <vcaputo@gnugeneration.com>2017-02-03 16:08:01 -0800
commita7c44b6146e306b13b63b8bececa6b7bc8ed59fb (patch)
treeb12e43f14e3a2dc1fe735dbf71a9862d798623a1 /src/modules/stars/stars.c
parentf21492a1e8314e27ef307bc4b2629468d40e6c72 (diff)
stars: use fb_fragment_put_pixel_unchecked()
drop draw_pixel() duplication
Diffstat (limited to 'src/modules/stars/stars.c')
-rw-r--r--src/modules/stars/stars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/stars/stars.c b/src/modules/stars/stars.c
index e009714..0f6c2d5 100644
--- a/src/modules/stars/stars.c
+++ b/src/modules/stars/stars.c
@@ -43,7 +43,7 @@ static void stars(fb_fragment_t *fragment)
for (;;) {
int ret = process_point( u, &rp );
if (ret==0) break;
- if (ret==1) draw_pixel(fragment, rp.x+(width/2), rp.y+(height/2),
+ if (ret==1) fb_fragment_put_pixel_unchecked(fragment, rp.x+(width/2), rp.y+(height/2),
makergb(0xFF, 0xFF, 0xFF, (float)rp.opacity/OPACITY_MAX)
);
}
© All Rights Reserved