From cb9067b11edf29a847cc30d52cdc52be4b25f901 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sat, 12 Dec 2020 03:47:18 +0100 Subject: [PATCH] Fix drawStickOverlayPreview in OSD --- src/js/tabs/osd.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index d834e7f3..b2105611 100644 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -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; @@ -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;