From 14ffc003c5232b1c97122b95eb2ef3d94b5d8227 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Tue, 7 Jan 2025 23:07:50 +0100 Subject: [PATCH] Fixed a small bug in GUI --- TEF6686_ESP32.ino | 4 ++-- src/gui.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index 58286a3..dfc7e38 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -1196,7 +1196,7 @@ void loop() { tftPrint(-1, "PS:", 3, 193, ActiveColor, ActiveColorSmooth, 16); tftPrint(-1, "RT:", 3, 221, ActiveColor, ActiveColorSmooth, 16); tftPrint(-1, "PTY:", 3, 163, ActiveColor, ActiveColorSmooth, 16); - if (!showmodulation) tft.drawLine(20, 143, 204, 143, GreyoutColor); else tft.drawLine(20, 143, 204, 143, Darkgrey); + if (!showmodulation) tft.drawLine(16, 143, 203, 143, GreyoutColor); else tft.drawLine(16, 143, 203, 143, ActiveColor); } LowLevelInit = true; } @@ -1228,7 +1228,7 @@ void loop() { tftPrint(-1, "PS:", 3, 193, GreyoutColor, BackgroundColor, 16); tftPrint(-1, "RT:", 3, 221, GreyoutColor, BackgroundColor, 16); tftPrint(-1, "PTY:", 3, 163, GreyoutColor, BackgroundColor, 16); - tft.drawLine(20, 143, 204, 143, GreyoutColor); + tft.drawLine(16, 143, 203, 143, GreyoutColor); tft.drawBitmap(122, 5, RDSLogo, 35, 22, GreyoutColor); } LowLevelInit = false; diff --git a/src/gui.cpp b/src/gui.cpp index 479147d..dd32ab3 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -2843,9 +2843,9 @@ void BuildDisplay() { tft.drawLine(53, 30, 53, 0, FrameColor); tft.drawLine(89, 30, 89, 0, FrameColor); tft.drawLine(158, 30, 158, 0, FrameColor); - tft.drawLine(20, 114, 204, 114, Darkgrey); + tft.drawLine(16, 114, 202, 114, ActiveColor); - if (!showmodulation) tft.drawLine(20, 143, 204, 143, GreyoutColor); else tft.drawLine(20, 143, 204, 143, Darkgrey); + if (!showmodulation) tft.drawLine(16, 143, 202, 143, GreyoutColor); else tft.drawLine(16, 143, 202, 143, ActiveColor); for (byte segments = 0; segments < 94; segments++) { if (segments > 54) { if (((segments - 53) % 10) == 0) {