summaryrefslogtreecommitdiff
path: root/modules/sparkler/particles.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sparkler/particles.c')
-rw-r--r--modules/sparkler/particles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sparkler/particles.c b/modules/sparkler/particles.c
index ee23972..daf60ef 100644
--- a/modules/sparkler/particles.c
+++ b/modules/sparkler/particles.c
@@ -216,7 +216,7 @@ bsp_t * particles_bsp(particles_t *particles)
static inline void _particles_draw(particles_t *particles, list_head_t *list, fb_fragment_t *fragment)
{
- float w2 = fragment->width / 2, h2 = fragment->height / 2;
+ float w2 = fragment->width * .5f, h2 = fragment->height * .5f;
_particle_t *p;
assert(particles);
© All Rights Reserved