diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 10:54:19 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 10:54:19 +1000 |
commit | 2ab2d77fcba42467b62f2be732cb8dc00510fe19 (patch) | |
tree | 8dbd616faa116a2946ad47c62c20d4a34fb749b2 /src/gwin/gwin_graph.c | |
parent | 7e95acb7310d83284288a6e89a6b3fe4bf4e8668 (diff) | |
download | uGFX-2ab2d77fcba42467b62f2be732cb8dc00510fe19.tar.gz uGFX-2ab2d77fcba42467b62f2be732cb8dc00510fe19.tar.bz2 uGFX-2ab2d77fcba42467b62f2be732cb8dc00510fe19.zip |
Change coord_t to gCoord
Diffstat (limited to 'src/gwin/gwin_graph.c')
-rw-r--r-- | src/gwin/gwin_graph.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gwin/gwin_graph.c b/src/gwin/gwin_graph.c index 217f1755..6c7a6932 100644 --- a/src/gwin/gwin_graph.c +++ b/src/gwin/gwin_graph.c @@ -37,7 +37,7 @@ static const gwinVMT graphVMT = { 0, // The after-clear routine }; -static void pointto(GGraphObject *gg, coord_t x, coord_t y, const GGraphPointStyle *style) { +static void pointto(GGraphObject *gg, gCoord x, gCoord y, const GGraphPointStyle *style) { if (style->type == GGRAPH_POINT_NONE) return; @@ -66,11 +66,11 @@ static void pointto(GGraphObject *gg, coord_t x, coord_t y, const GGraphPointSty } } -static void lineto(GGraphObject *gg, coord_t x0, coord_t y0, coord_t x1, coord_t y1, const GGraphLineStyle *style) { - coord_t dy, dx; - coord_t addx, addy; - coord_t P, diff, i; - coord_t run_on, run_off, run; +static void lineto(GGraphObject *gg, gCoord x0, gCoord y0, gCoord x1, gCoord y1, const GGraphLineStyle *style) { + gCoord dy, dx; + gCoord addx, addy; + gCoord P, diff, i; + gCoord run_on, run_off, run; if (style->type == GGRAPH_LINE_NONE) return; @@ -193,7 +193,7 @@ void gwinGraphSetStyle(GHandle gh, const GGraphStyle *pstyle) { #undef gg } -void gwinGraphSetOrigin(GHandle gh, coord_t x, coord_t y) { +void gwinGraphSetOrigin(GHandle gh, gCoord x, gCoord y) { #define gg ((GGraphObject *)gh) if (gh->vmt != &graphVMT) @@ -207,7 +207,7 @@ void gwinGraphSetOrigin(GHandle gh, coord_t x, coord_t y) { void gwinGraphDrawAxis(GHandle gh) { #define gg ((GGraphObject *)gh) - coord_t i, xmin, ymin, xmax, ymax; + gCoord i, xmin, ymin, xmax, ymax; if (gh->vmt != &graphVMT || !_gwinDrawStart(gh)) return; @@ -274,7 +274,7 @@ void gwinGraphStartSet(GHandle gh) { gh->flags &= ~GGRAPH_FLG_CONNECTPOINTS; } -void gwinGraphDrawPoint(GHandle gh, coord_t x, coord_t y) { +void gwinGraphDrawPoint(GHandle gh, gCoord x, gCoord y) { #define gg ((GGraphObject *)gh) if (gh->vmt != &graphVMT || !_gwinDrawStart(gh)) |