summaryrefslogtreecommitdiff
path: root/modules/sparkler
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-01-07 16:22:56 -0800
committerVito Caputo <vcaputo@gnugeneration.com>2017-01-07 16:22:56 -0800
commit78d9c385ae3a1939e059c674ba5649df99d5615c (patch)
treeb9af645e4e445b96d160ffd34c2e50be1be2f9b7 /modules/sparkler
parent8c1fb02aa373cebb9c64fd32687181088e6bda09 (diff)
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.
Diffstat (limited to 'modules/sparkler')
-rw-r--r--modules/sparkler/draw.h2
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;
}
© All Rights Reserved