diff options
author | Joel Bodenmann <joel.bodenmann@hevs.ch> | 2012-10-24 16:47:52 +0200 |
---|---|---|
committer | Joel Bodenmann <joel.bodenmann@hevs.ch> | 2012-10-24 16:47:52 +0200 |
commit | 03ccc151c3078a18f07fdada8073b50925faa683 (patch) | |
tree | e751f5d6f49e035a2377e8adf03110ae20d3a944 | |
parent | e0c8011553db0129039d7c8101e4906fa9677fcf (diff) | |
download | uGFX-03ccc151c3078a18f07fdada8073b50925faa683.tar.gz uGFX-03ccc151c3078a18f07fdada8073b50925faa683.tar.bz2 uGFX-03ccc151c3078a18f07fdada8073b50925faa683.zip |
graphDrawOneQuadrant() 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 871e1e18..b80cbd09 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->y1, g->x1, g->y1, g->color); + gdispDrawLine(g->x0, g->y0, g->x1, g->y0, g->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->color); /* Y Axis */ - gdispDrawLine(g->x0, g->y0, g->x0, g->y1, g->color); + gdispDrawLine(g->x1, g->y0, g->x1, g->y1, g->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->color); |