From b0f0481b6f0ae0407bcf834d9de0ee01f49a0fb4 Mon Sep 17 00:00:00 2001 From: Ollo Date: Mon, 1 Nov 2021 13:03:07 +0100 Subject: [PATCH] Only clear background, when a background color is set --- displayword.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/displayword.lua b/displayword.lua index 18d0052..c3c1038 100644 --- a/displayword.lua +++ b/displayword.lua @@ -148,9 +148,6 @@ local generateLEDs = function(rgbBuffer, words, colorBg, colorFg, colorM1, color -- Background color must always be set if (colorBg ~= nil) then rgbBuffer:fill(string.byte(colorBg,1), string.byte(colorBg,2), string.byte(colorBg,3)) -- draw the background - else - -- Space / background has no color by default - rgbBuffer:fill(0, 0, 0) -- draw the background end local lineIdx=1