summaryrefslogtreecommitdiff
path: root/modules/stars/draw.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-01-10 19:55:16 -0800
committerGitHub <noreply@github.com>2017-01-10 19:55:16 -0800
commitf9f580747bd73a6010165337514d165a0f69d879 (patch)
treee92dbdec4d8899fe1213593e7d37e4b97d8c5751 /modules/stars/draw.h
parent7a58ca4d1d362dc3338559b698cb0a8637799da2 (diff)
parentc85c7448bfb0890aad35a265147e7fd81de30cd7 (diff)
stars: two bugfixes
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