mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 17:25:14 +03:00
Merge pull request #411 from shellixyz/fix_osd_ahi_preview
Fix OSD AHI preview
This commit is contained in:
commit
12a53debdf
1 changed files with 6 additions and 1 deletions
|
@ -1247,7 +1247,12 @@ TABS.osd.initialize = function (callback) {
|
||||||
// consume drag/drop events.
|
// consume drag/drop events.
|
||||||
item.preview_img.style.pointerEvents = 'none';
|
item.preview_img.style.pointerEvents = 'none';
|
||||||
}
|
}
|
||||||
var centerishPosition = 225;
|
|
||||||
|
var centerishPosition = 224;
|
||||||
|
|
||||||
|
// AHI is one line up with NTSC (less lines) compared to PAL
|
||||||
|
if (OSD.constants.VIDEO_TYPES[OSD.data.video_system] == 'NTSC')
|
||||||
|
centerishPosition -= OSD.data.display_size.x;
|
||||||
|
|
||||||
// artificial horizon
|
// artificial horizon
|
||||||
if ($('input[name="ARTIFICIAL_HORIZON"]').prop('checked')) {
|
if ($('input[name="ARTIFICIAL_HORIZON"]').prop('checked')) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue