summaryrefslogtreecommitdiff
path: root/modules/stars/draw.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/stars/draw.h')
-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