aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gwin/graph.c')
-rw-r--r--src/gwin/graph.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gwin/graph.c b/src/gwin/graph.c
index e950f623..581001ad 100644
--- a/src/gwin/graph.c
+++ b/src/gwin/graph.c
@@ -88,7 +88,7 @@ static void lineto(GGraphObject *gg, coord_t x0, coord_t y0, coord_t x1, coord_t
x0 += gg->gwin.x + gg->xorigin;
y0 = gg->gwin.y + gg->gwin.height - 1 - gg->yorigin - y0;
x1 += gg->gwin.x + gg->xorigin;
- y1 += gg->gwin.y + gg->gwin.height - 1 - gg->yorigin - y1;
+ y1 = gg->gwin.y + gg->gwin.height - 1 - gg->yorigin - y1;
if (style->size <= 0) {
// Use the driver to draw a solid line
@@ -235,6 +235,7 @@ void gwinGraphSetStyle(GHandle gh, const GGraphStyle *pstyle) {
gg->style.ygrid.size = pstyle->ygrid.size;
gg->style.ygrid.color = pstyle->ygrid.color;
gg->style.ygrid.spacing = pstyle->ygrid.spacing;
+ gg->style.flags = pstyle->flags;
#undef gg
}