From edc254c080b514ea8ea85f432f666b9116f4037c Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Tue, 28 Oct 2014 00:20:11 +0100 Subject: Adding missing GWIN wrapper for ArcSectors functions --- src/gwin/gwin_gwin.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gwin/gwin_gwin.c') 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; -- cgit v1.2.3