diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/sparkler/draw.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/modules/sparkler/draw.h b/src/modules/sparkler/draw.h deleted file mode 100644 index 10701e0..0000000 --- a/src/modules/sparkler/draw.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef _DRAW_H -#define _DRAW_H - -#include <stdint.h> - -#include "fb.h" - - -static inline void draw_pixel(fb_fragment_t *f, int x, int y, uint32_t pixel) -{ - uint32_t *pixels = f->buf; - - /* FIXME this assumes stride is aligned to 4 */ - pixels[(y * (f->width + (f->stride >> 2))) + x] = pixel; -} - -#endif |