Merge pull request #2332 from haslinghuis/fix_osd_preview
Fix drawStickOverlayPreview in OSD10.8-maintenance
commit
8b006c48db
|
@ -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() {
|
FONT.initData = function() {
|
||||||
if (FONT.data) {
|
if (FONT.data) {
|
||||||
return;
|
return;
|
||||||
|
@ -371,6 +365,12 @@ OSD.drawStickOverlayPreview = function() {
|
||||||
return Math.floor(Math.random() * Math.floor(count));
|
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_WIDTH = 7;
|
||||||
const OVERLAY_HEIGHT = 5;
|
const OVERLAY_HEIGHT = 5;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue