1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-24 16:55:22 +03:00

Merge pull request #411 from shellixyz/fix_osd_ahi_preview

Fix OSD AHI preview
This commit is contained in:
Konstantin Sharlaimov 2018-04-23 12:25:36 +10:00 committed by GitHub
commit 12a53debdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1247,7 +1247,12 @@ TABS.osd.initialize = function (callback) {
// consume drag/drop events.
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
if ($('input[name="ARTIFICIAL_HORIZON"]').prop('checked')) {