1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Make OSD screen bigger if possible

This commit is contained in:
Miguel Angel Mulero Martinez 2022-05-06 12:58:25 +02:00
parent abdcbc6d30
commit ec7822f5f6
5 changed files with 53 additions and 27 deletions

View file

@ -1872,6 +1872,9 @@ OSD.updateDisplaySize = function() {
y: OSD.constants.VIDEO_LINES[videoType],
total: null,
};
// Adjust css background grid
const previewLayoutElement = $(".tab-osd .display-layout");
videoType === 'PAL' ? previewLayoutElement.addClass('video-pal').removeClass('video-ntsc') : previewLayoutElement.addClass('video-ntsc').removeClass('video-pal');
};
OSD.drawByOrder = function(selectedPosition, field, charCode, x, y) {