From ef4cc242dc8ad04320d19af22931fcbdbf670c13 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 14 Feb 2015 10:55:22 -0500 Subject: Stuff --- drivers/include/gfx.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/include') diff --git a/drivers/include/gfx.h b/drivers/include/gfx.h index 6f0f171..2abc172 100644 --- a/drivers/include/gfx.h +++ b/drivers/include/gfx.h @@ -1,3 +1,6 @@ +#ifndef _GFX_H_ +#define _GFX_H_ + #include #include @@ -67,7 +70,14 @@ void gfx_fillrect(int x1, int y1, int w, int h); void gfx_drawline(int x1, int y1, int x2, int y2); +/* these circle algorithms are very fast */ +void gfx_drawcircle(int cx, int cy, int rad); + +void gfx_fillcircle(int cx, int cy, int rad); + extern const uint16_t *gfx_width, *gfx_height; /* this is _BYTES_ per pixel, NOT BITS per pixel! */ extern const uint8_t *gfx_bpp; + +#endif -- cgit v1.1