summaryrefslogtreecommitdiff
path: root/modules/sparkler
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-01-07 16:31:35 -0800
committerVito Caputo <vcaputo@gnugeneration.com>2017-01-07 16:31:35 -0800
commit9521b7f00b9bc38411fafdd39a6174af80fb4281 (patch)
treeded73f8b7d5d319c82da0c755657879b0f7618ee /modules/sparkler
parent86bc322c65e3e2eabb91edcfe897ef2183dbddf2 (diff)
sparkler: remove unnecessary cast to float
Diffstat (limited to 'modules/sparkler')
-rw-r--r--modules/sparkler/particles.c4
1 files 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);
© All Rights Reserved