diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 10:43:30 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 10:43:30 +1000 |
commit | 7e95acb7310d83284288a6e89a6b3fe4bf4e8668 (patch) | |
tree | ab75f4037108ce704be60589e1ff830ef75bc5c4 /src/gdisp/gdisp.h | |
parent | e8b789bfb166ee3218e9dbb4c6ddf74bdba79510 (diff) | |
download | uGFX-7e95acb7310d83284288a6e89a6b3fe4bf4e8668.tar.gz uGFX-7e95acb7310d83284288a6e89a6b3fe4bf4e8668.tar.bz2 uGFX-7e95acb7310d83284288a6e89a6b3fe4bf4e8668.zip |
Change point and point_t to gPoint
Diffstat (limited to 'src/gdisp/gdisp.h')
-rw-r--r-- | src/gdisp/gdisp.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gdisp/gdisp.h b/src/gdisp/gdisp.h index 587c3115..33ac5468 100644 --- a/src/gdisp/gdisp.h +++ b/src/gdisp/gdisp.h @@ -45,13 +45,13 @@ typedef int16_t coord_t; /*===========================================================================*/ /** - * @struct point + * @struct gPoint * @brief Type for a 2D point on the screen. */ -typedef struct point { +typedef struct gPoint { coord_t x; /**< The x coordinate of the point. */ coord_t y; /**< The y coordinate of the point. */ -} point, point_t; +} gPoint; /** * @enum justify @@ -855,7 +855,7 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co * * @api */ - void gdispGDrawPoly(GDisplay *g, coord_t tx, coord_t ty, const point *pntarray, unsigned cnt, color_t color); + void gdispGDrawPoly(GDisplay *g, coord_t tx, coord_t ty, const gPoint *pntarray, unsigned cnt, color_t color); #define gdispDrawPoly(x,y,p,i,c) gdispGDrawPoly(GDISP,x,y,p,i,c) /** @@ -879,7 +879,7 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co * * @api */ - void gdispGFillConvexPoly(GDisplay *g, coord_t tx, coord_t ty, const point *pntarray, unsigned cnt, color_t color); + void gdispGFillConvexPoly(GDisplay *g, coord_t tx, coord_t ty, const gPoint *pntarray, unsigned cnt, color_t color); #define gdispFillConvexPoly(x,y,p,i,c) gdispGFillConvexPoly(GDISP,x,y,p,i,c) /** @@ -1228,6 +1228,10 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co #include "gdisp_pixmap.h" #endif +/* V2 compatibility */ +#if GFX_COMPAT_V2 + typedef gPoint point, point_t; +#endif #endif /* GFX_USE_GDISP */ |