aboutsummaryrefslogtreecommitdiffstats
path: root/src/graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph.c')
-rw-r--r--src/graph.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/graph.c b/src/graph.c
index a303cdb9..def9a043 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -25,7 +25,7 @@
#if GFX_USE_GRAPH
-point_t origin; // origin of graph
+static point_t origin; // origin of graph
static void swapCoordinates(coord_t *a, coord_t *b) {
coord_t temp;
@@ -147,5 +147,9 @@ void graphDrawNet(int coord[][2], uint16_t entries, uint16_t radius, uint16_t li
lcdFillCircle(coord[i][0] + origin.x, origin.y - coord[i][1], radius, dotColor);
}
+point_t graphGetOrigin(void) {
+ return origin;
+}
+
#endif /* GFX_USE_GRAPH */