GWIN Graph - use GDISP point definition

ugfx_release_2.6
Andrew Hannam 2013-03-18 18:28:31 +10:00
parent cc5729dedd
commit d678352b9a
2 changed files with 569 additions and 570 deletions

View File

@ -47,9 +47,8 @@
/* Type definitions */
/*===========================================================================*/
typedef struct GGraphPoint_t {
coord_t x, y;
} GGraphPoint;
// GDISP now has its own point structure
#define GGraphPoint point
typedef enum GGraphPointType_e {
GGRAPH_POINT_NONE, GGRAPH_POINT_DOT, GGRAPH_POINT_SQUARE, GGRAPH_POINT_CIRCLE
@ -195,7 +194,7 @@ void gwinGraphDrawPoint(GHandle gh, coord_t x, coord_t y);
*
* @api
*/
void gwinGraphDrawPoints(GHandle gh, const GGraphPoint *points, unsigned count);
void gwinGraphDrawPoints(GHandle gh, const point *points, unsigned count);
#ifdef __cplusplus
}

View File

@ -323,10 +323,10 @@ void gwinGraphDrawPoint(GHandle gh, coord_t x, coord_t y) {
#undef gg
}
void gwinGraphDrawPoints(GHandle gh, const GGraphPoint *points, unsigned count) {
void gwinGraphDrawPoints(GHandle gh, const point *points, unsigned count) {
#define gg ((GGraphObject *)gh)
unsigned i;
const GGraphPoint *p;
unsigned i;
const point *p;
if (gh->type != GW_GRAPH)
return;