Skip to content

Commit

Permalink
Update new option name
Browse files Browse the repository at this point in the history
  • Loading branch information
mmosca committed Nov 1, 2024
1 parent 4190480 commit 104bb75
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tabs/osd.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ OSD.constants = {
'AVATAR',
'BF43COMPAT',
'BFHDCOMPAT',
'DJINEW'
'DJI_NATIVE'
],
VIDEO_LINES: {
PAL: 16,
Expand All @@ -642,7 +642,7 @@ OSD.constants = {
AVATAR: 20,
BF43COMPAT: 16,
BFHDCOMPAT: 20,
DJINEW: 20
DJI_NATIVE: 20
},
VIDEO_COLS: {
PAL: 30,
Expand All @@ -652,7 +652,7 @@ OSD.constants = {
AVATAR: 53,
BF43COMPAT: 30,
BFHDCOMPAT: 53,
DJINEW: 53,
DJI_NATIVE: 53,
},
VIDEO_BUFFER_CHARS: {
PAL: 480,
Expand All @@ -662,7 +662,7 @@ OSD.constants = {
AVATAR: 1060,
BF43COMPAT: 480,
BFHDCOMPAT: 1060
DJINEW: 1060
DJI_NATIVE: 1060
},
UNIT_TYPES: [
{name: 'osdUnitImperial', value: 0},
Expand Down Expand Up @@ -2329,9 +2329,9 @@ OSD.updateDisplaySize = function () {
$('.preview').toggleClass('preview_hdzero cut43_left', (video_type == 'HDZERO'))
$('.third_right').toggleClass('preview_hdzero_side', (video_type == 'HDZERO'))
// -- BFHDCOMPAT
$('.third_left').toggleClass('preview_bfhdcompat_side', (video_type == 'BFHDCOMPAT' || video_type == 'DJINEW'))
$('.preview').toggleClass('preview_bfhdcompat cut43_left', (video_type == 'BFHDCOMPAT' || video_type == 'DJINEW'))
$('.third_right').toggleClass('preview_bfhdcompat_side', (video_type == 'BFHDCOMPAT' || video_type == 'DJINEW'))
$('.third_left').toggleClass('preview_bfhdcompat_side', (video_type == 'BFHDCOMPAT' || video_type == 'DJI_NATIVE'))
$('.preview').toggleClass('preview_bfhdcompat cut43_left', (video_type == 'BFHDCOMPAT' || video_type == 'DJI_NATIVE'))
$('.third_right').toggleClass('preview_bfhdcompat_side', (video_type == 'BFHDCOMPAT' || video_type == 'DJI_NATIVE'))

OSD.GUI.updateGuidesView($('#videoGuides').find('input').is(':checked'));
};
Expand Down Expand Up @@ -2620,7 +2620,7 @@ OSD.GUI.checkAndProcessSymbolPosition = function(pos, charCode) {
}
};

const mspVideoSystem = [1,3,4,5,6,7,8]; // indexes of PAL, HDZERO, DJIWTF, AVATAR, BF43COMPAT, BFHDCOMPAT & DJINEW
const mspVideoSystem = [1,3,4,5,6,7,8]; // indexes of PAL, HDZERO, DJIWTF, AVATAR, BF43COMPAT, BFHDCOMPAT & DJI_NATIVE
const analogVideoSystem = [0,1,2]; // indexes of AUTO, PAL, & NTSC

OSD.GUI.updateVideoMode = function() {
Expand Down Expand Up @@ -2933,7 +2933,7 @@ OSD.GUI.updateGuidesView = function(on) {
$('.hd_avatar_storage_box_left').toggleClass('hd_avatar_storagebox_l', (isAvatar && on))
$('.hd_avatar_storage_box_right').toggleClass('hd_avatar_storagebox_r', (isAvatar && on))

let isBfHdCompat = OSD.constants.VIDEO_TYPES[OSD.data.preferences.video_system] == 'BFHDCOMPAT' || OSD.constants.VIDEO_TYPES[OSD.data.preferences.video_system] == 'DJINEW';
let isBfHdCompat = OSD.constants.VIDEO_TYPES[OSD.data.preferences.video_system] == 'BFHDCOMPAT' || OSD.constants.VIDEO_TYPES[OSD.data.preferences.video_system] == 'DJI_NATIVE';
$('.hd_43_margin_left').toggleClass('hd_bfhdcompat_43_left', (isBfHdCompat && on));
$('.hd_43_margin_right').toggleClass('hd_bfhdcompat_43_right', (isBfHdCompat && on));
$('.hd_bfhdcompat_bottom_box').toggleClass('hd_bfhdcompat_bottom', (isBfHdCompat && on));
Expand Down

0 comments on commit 104bb75

Please sign in to comment.