From 24f336a41890e781c8c51c707dbcc2148fec7376 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Sat, 1 Jun 2024 13:42:33 +0200 Subject: [PATCH] Fixed pixel error in RDS error bar (Advanced RDS) --- src/rds.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/rds.cpp b/src/rds.cpp index bce1514..7c87ff0 100644 --- a/src/rds.cpp +++ b/src/rds.cpp @@ -513,71 +513,71 @@ void ShowErrors() { switch (calc) { case 0: tft.drawRoundRect(205, (advancedRDS ? 74 : 186), 4, 24, 2, BarInsignificantColor); - tft.fillRoundRect(206, (advancedRDS ? 75 : 186), 2, 24, 2, BarInsignificantColor); + tft.fillRoundRect(206, (advancedRDS ? 74 : 186), 2, 24, 2, BarInsignificantColor); tft.drawRoundRect(199, (advancedRDS ? 79 : 191), 4, 19, 2, BarInsignificantColor); - tft.fillRoundRect(200, (advancedRDS ? 80 : 191), 2, 19, 2, BarInsignificantColor); + tft.fillRoundRect(200, (advancedRDS ? 79 : 191), 2, 19, 2, BarInsignificantColor); tft.drawRoundRect(193, (advancedRDS ? 84 : 196), 4, 14, 2, BarInsignificantColor); - tft.fillRoundRect(194, (advancedRDS ? 85 : 196), 2, 14, 2, BarInsignificantColor); + tft.fillRoundRect(194, (advancedRDS ? 84 : 196), 2, 14, 2, BarInsignificantColor); tft.drawRoundRect(187, (advancedRDS ? 89 : 201), 4, 9, 2, BarInsignificantColor); - tft.fillRoundRect(188, (advancedRDS ? 90 : 201), 2, 9, 2, BarInsignificantColor); + tft.fillRoundRect(188, (advancedRDS ? 89 : 201), 2, 9, 2, BarInsignificantColor); break; case 1: - tft.fillRoundRect(206, (advancedRDS ? 75 : 186), 2, 24, 2, BackgroundColor); + tft.fillRoundRect(206, (advancedRDS ? 74 : 186), 2, 24, 2, BackgroundColor); tft.drawRoundRect(205, (advancedRDS ? 74 : 186), 4, 24, 2, GreyoutColor); tft.drawRoundRect(199, (advancedRDS ? 79 : 191), 4, 19, 2, BarInsignificantColor); - tft.fillRoundRect(200, (advancedRDS ? 80 : 191), 2, 19, 2, BarInsignificantColor); + tft.fillRoundRect(200, (advancedRDS ? 79 : 191), 2, 19, 2, BarInsignificantColor); tft.drawRoundRect(193, (advancedRDS ? 84 : 196), 4, 14, 2, BarInsignificantColor); - tft.fillRoundRect(194, (advancedRDS ? 85 : 196), 2, 14, 2, BarInsignificantColor); + tft.fillRoundRect(194, (advancedRDS ? 84 : 196), 2, 14, 2, BarInsignificantColor); tft.drawRoundRect(187, (advancedRDS ? 89 : 201), 4, 9, 2, BarInsignificantColor); - tft.fillRoundRect(188, (advancedRDS ? 90 : 201), 2, 9, 2, BarInsignificantColor); + tft.fillRoundRect(188, (advancedRDS ? 89 : 201), 2, 9, 2, BarInsignificantColor); break; case 2: - tft.fillRoundRect(206, (advancedRDS ? 75 : 186), 2, 24, 2, BackgroundColor); + tft.fillRoundRect(206, (advancedRDS ? 74 : 186), 2, 24, 2, BackgroundColor); tft.drawRoundRect(205, (advancedRDS ? 74 : 186), 4, 24, 2, GreyoutColor); - tft.fillRoundRect(200, (advancedRDS ? 80 : 191), 2, 19, 2, BackgroundColor); + tft.fillRoundRect(200, (advancedRDS ? 79 : 191), 2, 19, 2, BackgroundColor); tft.drawRoundRect(199, (advancedRDS ? 79 : 191), 4, 19, 2, GreyoutColor); tft.drawRoundRect(193, (advancedRDS ? 84 : 196), 4, 14, 2, BarSignificantColor); - tft.fillRoundRect(194, (advancedRDS ? 85 : 196), 2, 14, 2, BarSignificantColor); + tft.fillRoundRect(194, (advancedRDS ? 84 : 196), 2, 14, 2, BarSignificantColor); tft.drawRoundRect(187, (advancedRDS ? 89 : 201), 4, 9, 2, BarSignificantColor); - tft.fillRoundRect(188, (advancedRDS ? 90 : 201), 2, 9, 2, BarSignificantColor); + tft.fillRoundRect(188, (advancedRDS ? 89 : 201), 2, 9, 2, BarSignificantColor); break; case 3: - tft.fillRoundRect(206, (advancedRDS ? 75 : 186), 2, 24, 2, BackgroundColor); + tft.fillRoundRect(206, (advancedRDS ? 74 : 186), 2, 24, 2, BackgroundColor); tft.drawRoundRect(205, (advancedRDS ? 74 : 186), 4, 24, 2, GreyoutColor); - tft.fillRoundRect(200, (advancedRDS ? 80 : 191), 2, 19, 2, BackgroundColor); + tft.fillRoundRect(200, (advancedRDS ? 79 : 191), 2, 19, 2, BackgroundColor); tft.drawRoundRect(199, (advancedRDS ? 79 : 191), 4, 19, 2, GreyoutColor); - tft.fillRoundRect(194, (advancedRDS ? 85 : 196), 2, 14, 2, BackgroundColor); + tft.fillRoundRect(194, (advancedRDS ? 84 : 196), 2, 14, 2, BackgroundColor); tft.drawRoundRect(193, (advancedRDS ? 84 : 196), 4, 14, 2, GreyoutColor); tft.drawRoundRect(187, (advancedRDS ? 89 : 201), 4, 9, 2, BarSignificantColor); - tft.fillRoundRect(188, (advancedRDS ? 90 : 201), 2, 9, 2, BarSignificantColor); + tft.fillRoundRect(188, (advancedRDS ? 89 : 201), 2, 9, 2, BarSignificantColor); break; case 4: - tft.fillRoundRect(206, (advancedRDS ? 75 : 186), 2, 24, 2, BackgroundColor); + tft.fillRoundRect(206, (advancedRDS ? 74 : 186), 2, 24, 2, BackgroundColor); tft.drawRoundRect(205, (advancedRDS ? 74 : 186), 4, 24, 2, GreyoutColor); - tft.fillRoundRect(200, (advancedRDS ? 80 : 191), 2, 19, 2, BackgroundColor); + tft.fillRoundRect(200, (advancedRDS ? 79 : 191), 2, 19, 2, BackgroundColor); tft.drawRoundRect(199, (advancedRDS ? 79 : 191), 4, 19, 2, GreyoutColor); - tft.fillRoundRect(194, (advancedRDS ? 85 : 196), 2, 14, 2, BackgroundColor); + tft.fillRoundRect(194, (advancedRDS ? 84 : 196), 2, 14, 2, BackgroundColor); tft.drawRoundRect(193, (advancedRDS ? 84 : 196), 4, 14, 2, GreyoutColor); - tft.fillRoundRect(188, (advancedRDS ? 90 : 201), 2, 9, 2, BackgroundColor); + tft.fillRoundRect(188, (advancedRDS ? 89 : 201), 2, 9, 2, BackgroundColor); tft.drawRoundRect(187, (advancedRDS ? 89 : 201), 4, 9, 2, GreyoutColor); break; }