Skip to content

Commit

Permalink
Merge pull request #2332 from haslinghuis/fix_osd_preview
Browse files Browse the repository at this point in the history
Fix drawStickOverlayPreview in OSD
  • Loading branch information
mikeller committed Dec 13, 2020
2 parents 7a87426 + cb9067b commit 8b006c4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/js/tabs/osd.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ SYM.loadSymbols = function() {
}
};

const STICK_OVERLAY_SPRITE = [
SYM.STICK_OVERLAY_SPRITE_HIGH,
SYM.STICK_OVERLAY_SPRITE_MID,
SYM.STICK_OVERLAY_SPRITE_LOW,
];

FONT.initData = function() {
if (FONT.data) {
return;
Expand Down Expand Up @@ -371,6 +365,12 @@ OSD.drawStickOverlayPreview = function() {
return Math.floor(Math.random() * Math.floor(count));
}

const STICK_OVERLAY_SPRITE = [
SYM.STICK_OVERLAY_SPRITE_HIGH,
SYM.STICK_OVERLAY_SPRITE_MID,
SYM.STICK_OVERLAY_SPRITE_LOW,
];

const OVERLAY_WIDTH = 7;
const OVERLAY_HEIGHT = 5;

Expand Down

0 comments on commit 8b006c4

Please sign in to comment.