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