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 */
|
/* Type definitions */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
typedef struct GGraphPoint_t {
|
// GDISP now has its own point structure
|
||||||
coord_t x, y;
|
#define GGraphPoint point
|
||||||
} GGraphPoint;
|
|
||||||
|
|
||||||
typedef enum GGraphPointType_e {
|
typedef enum GGraphPointType_e {
|
||||||
GGRAPH_POINT_NONE, GGRAPH_POINT_DOT, GGRAPH_POINT_SQUARE, GGRAPH_POINT_CIRCLE
|
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
|
* @api
|
||||||
*/
|
*/
|
||||||
void gwinGraphDrawPoints(GHandle gh, const GGraphPoint *points, unsigned count);
|
void gwinGraphDrawPoints(GHandle gh, const point *points, unsigned count);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -323,10 +323,10 @@ void gwinGraphDrawPoint(GHandle gh, coord_t x, coord_t y) {
|
||||||
#undef gg
|
#undef gg
|
||||||
}
|
}
|
||||||
|
|
||||||
void gwinGraphDrawPoints(GHandle gh, const GGraphPoint *points, unsigned count) {
|
void gwinGraphDrawPoints(GHandle gh, const point *points, unsigned count) {
|
||||||
#define gg ((GGraphObject *)gh)
|
#define gg ((GGraphObject *)gh)
|
||||||
unsigned i;
|
unsigned i;
|
||||||
const GGraphPoint *p;
|
const point *p;
|
||||||
|
|
||||||
if (gh->type != GW_GRAPH)
|
if (gh->type != GW_GRAPH)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue