From 838bae3dedcfa03239df0104bbf888f307d5e858 Mon Sep 17 00:00:00 2001 From: David Peer Date: Sun, 16 Jan 2022 11:43:13 +0100 Subject: [PATCH] Print row can be assync. Therefore we set the font there. --- apps/lcars/lcars.app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/lcars/lcars.app.js b/apps/lcars/lcars.app.js index 4ff6d37d6..2b9976a1a 100644 --- a/apps/lcars/lcars.app.js +++ b/apps/lcars/lcars.app.js @@ -115,6 +115,8 @@ function queueDraw() { function printRow(text, value, y, c){ + g.setFontAntonioMedium(); + g.setFontAlign(-1,-1,0); g.setColor(c); g.fillRect(79, y-2, 85 ,y+18); @@ -140,8 +142,6 @@ function drawData(key, y, c){ function _drawData(key, y, c){ - g.setFontAntonioMedium(); - g.setFontAlign(-1,-1,0); key = key.toUpperCase() var text = key; var value = "ERR";