From 7762d82bdd2599ffe0c7f07c15254af118815cf2 Mon Sep 17 00:00:00 2001 From: Mr D - RC Date: Sat, 4 Jan 2025 16:42:22 +0000 Subject: [PATCH 1/3] Fix decimal in flight remaining, home, and trip distances --- tabs/osd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabs/osd.js b/tabs/osd.js index e884bfea6..98be23a48 100644 --- a/tabs/osd.js +++ b/tabs/osd.js @@ -515,7 +515,7 @@ function osdDecimalsDistancePreview(prependedSymbol) { s += FONT.symbol(SYM.DIST_KM); } - s = FONT.symbol(prependedSymbol) + s; + s = FONT.symbol(prependedSymbol) + FONT.embed_dot(s); return s; } From ad94c2fbe77c389e1f1c80338317ef0ccddf7c6e Mon Sep 17 00:00:00 2001 From: Mr D - RC Date: Sat, 4 Jan 2025 16:44:18 +0000 Subject: [PATCH 2/3] Update osd.js --- tabs/osd.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tabs/osd.js b/tabs/osd.js index 98be23a48..774613c9a 100644 --- a/tabs/osd.js +++ b/tabs/osd.js @@ -505,6 +505,8 @@ function osdDecimalsDistancePreview(prependedSymbol) { s = '1' + s + '7'; } + s = FONT.embed_dot(s); + switch (OSD.data.preferences.units) { case 0: // Imperial case 3: // UK @@ -515,7 +517,7 @@ function osdDecimalsDistancePreview(prependedSymbol) { s += FONT.symbol(SYM.DIST_KM); } - s = FONT.symbol(prependedSymbol) + FONT.embed_dot(s); + s = FONT.symbol(prependedSymbol) + s; return s; } From 47c747f14aa072bf6fa59e55ebd284e64ab4afa6 Mon Sep 17 00:00:00 2001 From: Mr D - RC Date: Sat, 4 Jan 2025 16:54:02 +0000 Subject: [PATCH 3/3] Change numbers to look a bit better --- tabs/osd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabs/osd.js b/tabs/osd.js index 774613c9a..bc1253e41 100644 --- a/tabs/osd.js +++ b/tabs/osd.js @@ -498,11 +498,11 @@ function osdDecimalsTripDistancePreview() { } function osdDecimalsDistancePreview(prependedSymbol) { - var s = '11.5'; + var s = '24.9'; if (Settings.getInputValue('osd_decimals_distance') == 4) { s+= '3'; } if (Settings.getInputValue('osd_decimals_distance') == 5) { - s = '1' + s + '7'; + s = '1' + s + '6'; } s = FONT.embed_dot(s);