From 78d9c385ae3a1939e059c674ba5649df99d5615c Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 7 Jan 2017 16:22:56 -0800 Subject: sparkler: fix parens typo in draw_pixel Stride needs to be considered as part of width, this is wrong, funnily none of my test systems exposed it. --- modules/sparkler/draw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/sparkler/draw.h') diff --git a/modules/sparkler/draw.h b/modules/sparkler/draw.h index 58a4a36..5010374 100644 --- a/modules/sparkler/draw.h +++ b/modules/sparkler/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.3