summaryrefslogtreecommitdiff
path: root/modules/stars
diff options
context:
space:
mode:
authorPhilip J Freeman <elektron@halo.nu>2017-01-10 18:48:07 -0800
committerPhilip J Freeman <elektron@halo.nu>2017-01-10 19:42:19 -0800
commitd3e33d16473194aae9e00712f12b721dcef762a5 (patch)
tree63dfae3c2ed6ff3808f9d7a8b16c16850d70211e /modules/stars
parent7a58ca4d1d362dc3338559b698cb0a8637799da2 (diff)
pull fix in draw.h from sparkler to stars (78d9c385ae3a1939e059c674ba5649df99d5615c)
Diffstat (limited to 'modules/stars')
-rw-r--r--modules/stars/draw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/stars/draw.h b/modules/stars/draw.h
index 58a4a36..5010374 100644
--- a/modules/stars/draw.h
+++ b/modules/stars/draw.h
@@ -24,7 +24,7 @@ static inline int draw_pixel(fb_fragment_t *f, int x, int y, uint32_t pixel)
}
/* FIXME this assumes stride is aligned to 4 */
- pixels[(y * f->width + (f->stride >> 2)) + x] = pixel;
+ pixels[(y * (f->width + (f->stride >> 2))) + x] = pixel;
return 1;
}
© All Rights Reserved