aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin_gwin.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-10-28 00:20:11 +0100
committerJoel Bodenmann <joel@unormal.org>2014-10-28 00:20:11 +0100
commitedc254c080b514ea8ea85f432f666b9116f4037c (patch)
treea5544bbac6669ef4f3cd98a56804fa92d73a449f /src/gwin/gwin_gwin.c
parent08292eb7d0a0f71e222ae5e4f3fd0a7619bf29c6 (diff)
downloaduGFX-edc254c080b514ea8ea85f432f666b9116f4037c.tar.gz
uGFX-edc254c080b514ea8ea85f432f666b9116f4037c.tar.bz2
uGFX-edc254c080b514ea8ea85f432f666b9116f4037c.zip
Adding missing GWIN wrapper for ArcSectors functions
Diffstat (limited to 'src/gwin/gwin_gwin.c')
-rw-r--r--src/gwin/gwin_gwin.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gwin/gwin_gwin.c b/src/gwin/gwin_gwin.c
index 26e23f32..03902c9b 100644
--- a/src/gwin/gwin_gwin.c
+++ b/src/gwin/gwin_gwin.c
@@ -299,6 +299,20 @@ void gwinBlitArea(GHandle gh, coord_t x, coord_t y, coord_t cx, coord_t cy, coor
}
#endif
+#if GDISP_NEED_ARCSECTORS
+ void gwinDrawArcSectors(GHandle gh, coord_t x, coord_t y, coord_t radius, uint8_t sectors) {
+ if (!_gwinDrawStart(gh)) return;
+ gdispGDrawArcSectors(gh->display, gh->x+x, gh->y+y, radius, sectors, gh->color);
+ _gwinDrawEnd(gh);
+ }
+
+ void gwinFillArcSectors(GHandle gh, coord_t x, coord_t y, coord_t radius, uint8_t sectors) {
+ if (!_gwinDrawStart(gh)) return;
+ gdispGFillArcSectors(gh->display, gh->x+x, gh->y+y, radius, sectors, gh->color);
+ _gwinDrawEnd(gh);
+ }
+#endif
+
#if GDISP_NEED_PIXELREAD
color_t gwinGetPixelColor(GHandle gh, coord_t x, coord_t y) {
if (!_gwinDrawStart(gh)) return (color_t)0;