From 9521b7f00b9bc38411fafdd39a6174af80fb4281 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 7 Jan 2017 16:31:35 -0800 Subject: sparkler: remove unnecessary cast to float --- modules/sparkler/particles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/sparkler/particles.c b/modules/sparkler/particles.c index cce8d7f..bb431a6 100644 --- a/modules/sparkler/particles.c +++ b/modules/sparkler/particles.c @@ -227,8 +227,8 @@ static inline void _particles_draw(particles_t *particles, list_head_t *list, fb int x, y; /* project the 3d coordinates onto the 2d plane */ - x = ((float)(p->props.position.x / (p->props.position.z - ZCONST)) * w2) + w2; - y = ((float)(p->props.position.y / (p->props.position.z - ZCONST)) * h2) + h2; + x = (p->props.position.x / (p->props.position.z - ZCONST) * w2) + w2; + y = (p->props.position.y / (p->props.position.z - ZCONST) * h2) + h2; particle_draw(particles, &p->public, x, y, fragment); -- cgit v1.2.3