summaryrefslogtreecommitdiff
path: root/src/modules/sparkler/draw.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/sparkler/draw.h')
-rw-r--r--src/modules/sparkler/draw.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/sparkler/draw.h b/src/modules/sparkler/draw.h
index 5010374..b988319 100644
--- a/src/modules/sparkler/draw.h
+++ b/src/modules/sparkler/draw.h
@@ -15,18 +15,12 @@ static inline uint32_t makergb(uint32_t r, uint32_t g, uint32_t b, float intensi
return (((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff));
}
-static inline int draw_pixel(fb_fragment_t *f, int x, int y, uint32_t pixel)
+static inline void draw_pixel(fb_fragment_t *f, int x, int y, uint32_t pixel)
{
uint32_t *pixels = f->buf;
- if (y < 0 || y >= f->height || x < 0 || x >= f->width) {
- return 0;
- }
-
/* FIXME this assumes stride is aligned to 4 */
pixels[(y * (f->width + (f->stride >> 2))) + x] = pixel;
-
- return 1;
}
#endif
© All Rights Reserved