Only clear background, when a background color is set

This commit is contained in:
Ollo 2021-11-01 13:03:07 +01:00
parent 5d96adb424
commit b0f0481b6f

View File

@ -148,9 +148,6 @@ local generateLEDs = function(rgbBuffer, words, colorBg, colorFg, colorM1, color
-- Background color must always be set -- Background color must always be set
if (colorBg ~= nil) then if (colorBg ~= nil) then
rgbBuffer:fill(string.byte(colorBg,1), string.byte(colorBg,2), string.byte(colorBg,3)) -- draw the background 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 end
local lineIdx=1 local lineIdx=1