GWIN Graph - use GDISP point definition
This commit is contained in:
parent
cc5729dedd
commit
d678352b9a
2 changed files with 569 additions and 570 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue