Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/js/tabs/osd.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,13 @@ OSD.constants = {
preview: function () {
var artificialHorizon = new Array();

for (var j = 1; j < 8; j++) {
for (var j = 0; j < 7; j++) {
for (var i = -4; i <= 4; i++) {

var element;

// Blank char to mark the size of the element
if (j != 4) {
if (j != 3) {
element = { x: i, y: j, sym: SYM.BLANK };

// Sample of horizon
Expand Down Expand Up @@ -1775,6 +1775,9 @@ OSD.GUI.preview = {
} else if ((limits.maxY > 0) && ((selectedPositionY + limits.maxY) >= OSD.data.display_size.y)) {
position -= (selectedPositionY + limits.maxY - OSD.data.display_size.y + 1) * FONT.constants.SIZES.LINE;
}
if (position < 0) {
return;
}
}
}
}
Expand Down