From f21492a1e8314e27ef307bc4b2629468d40e6c72 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 3 Feb 2017 15:46:08 -0800 Subject: sparkler: drop draw.h --- src/modules/sparkler/draw.h | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/modules/sparkler/draw.h (limited to 'src') 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 - -#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 -- cgit v1.2.3