Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Lines <darren@darrenlines.uk>2022-07-13 23:06:57 +0300
committerDarren Lines <darren@darrenlines.uk>2022-07-13 23:06:57 +0300
commit44dbc3722fd91be686e68bc2cac773588c8a9223 (patch)
tree494f7e0fa275bdc917012dd25771f1fd683ee3eb
parent3b1a9b84536c8011adbf3da9146860989df8fc20 (diff)
Updated to work with inav#8226MrD_Move-AHI-on-OSD-screen
-rw-r--r--js/settings.js2
-rw-r--r--tabs/osd.html2
-rw-r--r--tabs/osd.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/js/settings.js b/js/settings.js
index 153429eb..054a2771 100644
--- a/js/settings.js
+++ b/js/settings.js
@@ -64,7 +64,7 @@ var Settings = (function () {
} else {
input.empty();
let option = null;
- if (input.data('invert-select') === true) {
+ if (input.data('setting-invert-select') === true) {
for (var ii = s.setting.max; ii >= s.setting.min; ii--) {
option = null;
option = self.fillSelectOption(s, ii);
diff --git a/tabs/osd.html b/tabs/osd.html
index 66f093b6..f2de7a6a 100644
--- a/tabs/osd.html
+++ b/tabs/osd.html
@@ -95,7 +95,7 @@
</label>
<div for="osd_horizon_offset" class="helpicon cf_tip" data-i18n_title="osd_horizon_offset_help"></div>
<label>
- <select class="update_preview" id="osd_horizon_offset" data-setting="osd_horizon_offset" data-live="true"></select>
+ <select class="update_preview" id="osd_horizon_offset" data-setting="osd_horizon_offset" data-setting-invert-select="true" data-live="true"></select>
<span data-i18n="osd_horizon_offset"></span>
</label>
<label>
diff --git a/tabs/osd.js b/tabs/osd.js
index c41e7edb..ca410a24 100644
--- a/tabs/osd.js
+++ b/tabs/osd.js
@@ -2676,7 +2676,7 @@ OSD.GUI.updatePreviews = function() {
centerPosition += OSD.data.display_size.x / 2;
}
- let hudCenterPosition = centerPosition + (OSD.constants.VIDEO_COLS[video_type] * $('#osd_horizon_offset').val());
+ let hudCenterPosition = centerPosition - (OSD.constants.VIDEO_COLS[video_type] * $('#osd_horizon_offset').val());
// artificial horizon
if ($('input[name="ARTIFICIAL_HORIZON"]').prop('checked')) {