diff options
author | Joel Bodenmann <joel.bodenmann@hevs.ch> | 2012-10-24 19:05:16 +0200 |
---|---|---|
committer | Joel Bodenmann <joel.bodenmann@hevs.ch> | 2012-10-24 19:05:16 +0200 |
commit | 875edbd44dc71fbdf5a6bb1b643c47ba68998c04 (patch) | |
tree | d95342595e6c999b673acf45aba11eb8f442fc48 | |
parent | e0ca76b43c45ccf2ac824bb7b2f049d02aa1af60 (diff) | |
download | uGFX-875edbd44dc71fbdf5a6bb1b643c47ba68998c04.tar.gz uGFX-875edbd44dc71fbdf5a6bb1b643c47ba68998c04.tar.bz2 uGFX-875edbd44dc71fbdf5a6bb1b643c47ba68998c04.zip |
graph fix
-rw-r--r-- | src/graph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph.c b/src/graph.c index def9a043..1f28695a 100644 --- a/src/graph.c +++ b/src/graph.c @@ -71,13 +71,13 @@ void graphDrawOneQuadrant(Graph *g) { origin.y = g->y1; /* X Axis */ - gdispDrawLine(g->x0, g->y0, g->x1, g->y0, g->axis_color); + gdispDrawLine(g->x0, g->y1, g->x1, g->y1, g->axis_color); if(g->grid_size > 0) for(i = 0; i <= (length_y / g->grid_size); i++) _horizontalDotLine(g->x0, g->y0 + g->grid_size * i, g->x1, g->dot_space, g->grid_color); /* Y Axis */ - gdispDrawLine(g->x1, g->y0, g->x1, g->y1, g->axis_color); + gdispDrawLine(g->x0, g->y0, g->x0, g->y1, g->axis_color); if(g->grid_size > 0); for(i = 0; i <= (length_x / g->grid_size); i++) _verticalDotLine(g->x0 + g->grid_size * i, g->y0, g->y1, g->dot_space, g->grid_color); |