diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/sparkler/draw.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |