summaryrefslogtreecommitdiff
path: root/modules/sparkler
diff options
context:
space:
mode:
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