mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Fix drawStickOverlayPreview in OSD
This commit is contained in:
parent
317f937fd5
commit
cb9067b11e
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue