From 1558beaaf20d4d34ca1483352ac0cfbf2c0ace36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomislav=20Kopi=C4=87?= Date: Thu, 28 Nov 2024 19:41:52 +0100 Subject: [PATCH] fix grap position --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 954026b..f2782b4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -174,11 +174,11 @@ void displayProblems() { display.print("X"); } display.drawLine(0, 45, 127, 45, 1); // Line under the graph - display.drawLine(0, 10, 127, 10, 1); // Line under the graph + display.drawLine(0, 9, 127, 9, 1); // Line under the graph // Draw the history graph int graphHeight = 30; // Height of the graph - int graphTop = 15; // Top position of the graph + int graphTop = 14; // Top position of the graph int graphBottom = graphTop + graphHeight; int maxProblems = *std::max_element(problemHistory, problemHistory + maxHistorySize); // Find max for scaling