From 0774da0730cddc0be780467d4bd25517e23297a7 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sat, 31 Aug 2024 00:47:56 -0700 Subject: ... --- app.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app.mjs') 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 -- cgit v1.2.3-70-g09d2