From d3e33d16473194aae9e00712f12b721dcef762a5 Mon Sep 17 00:00:00 2001 From: Philip J Freeman Date: Tue, 10 Jan 2017 18:48:07 -0800 Subject: pull fix in draw.h from sparkler to stars (78d9c385ae3a1939e059c674ba5649df99d5615c) --- modules/stars/draw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1