aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2024-08-31 00:47:56 -0700
committerDeterminant <[email protected]>2024-08-31 00:47:56 -0700
commit0774da0730cddc0be780467d4bd25517e23297a7 (patch)
tree039c2f864a446db8fe11c4f31f3d674da7580a55
parentc55235e1ccc8de6bc03b7d19f4f66aea5660316e (diff)
...
-rwxr-xr-xapp.mjs5
1 files changed, 3 insertions, 2 deletions
diff --git a/app.mjs b/app.mjs
index 1455f7b..464a1d2 100755
--- a/app.mjs
+++ b/app.mjs
@@ -259,7 +259,7 @@ const drawSideKnobs = async (side, confs, highlight) => {
h - y_padding * 2,
);
if (Array.isArray(confs) && confs.length > i && confs[i] != null) {
- const { font, color_bg, color_fg } = getTextStyles(confs[i]);
+ const { font, color_bg } = getTextStyles(confs[i]);
const text = getLabels(confs[i]);
if (color_bg[0]) {
c.fillStyle = color_bg[0];
@@ -279,7 +279,7 @@ const drawSideKnobs = async (side, confs, highlight) => {
h,
w,
text,
- { font, color_bg, color_fg },
+ { font, color_fg: [fg] },
confs[i],
);
c.resetTransform();
@@ -452,6 +452,7 @@ const renderAttitudeIndicator = (c, display, values) => {
c.moveTo(30, 0);
c.lineTo(10, 0);
c.lineTo(10, 8);
+ c.rect(-1, -1, 2, 2);
c.stroke();
// draw vertical deflection dots