From c3f54e301a91e57503d0bb1bc62f3f6c2512942a Mon Sep 17 00:00:00 2001 From: hkc Date: Sun, 15 Oct 2023 03:21:55 +0300 Subject: [PATCH] It's foreground. --- ccpi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccpi.lua b/ccpi.lua index 701b1f3..a756e55 100644 --- a/ccpi.lua +++ b/ccpi.lua @@ -42,7 +42,7 @@ local function load(path) line.s = line.s .. fp:read(1) local color = string.byte(fp:read(1)) line.bg = line.bg .. string.format("%x", bit32.band(0xF, color)) - line.bg = line.bg .. string.format("%x", bit32.band(0xF, bit32.rshift(color, 4))) + line.fg = line.fg .. string.format("%x", bit32.band(0xF, bit32.rshift(color, 4))) end table.insert(image.lines, line) end