1
0
Fork 0

It's foreground.

This commit is contained in:
Casey 2023-10-15 03:21:55 +03:00
parent 0c79a8017c
commit c3f54e301a
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -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