mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-20 04:31:09 +02:00
true color sprites shouldnt show in non color modes
This commit is contained in:
@@ -234,7 +234,11 @@ local imageMeta = setmetatable({}, WEAK_KEYS)
|
||||
-- entirely, so its palette variant collapses back onto the plain path.
|
||||
local function getImage(path, pal, trueColor)
|
||||
if not path then return nil end
|
||||
if trueColor then pal = nil end
|
||||
if trueColor and require("src.render.PaletteFX").honorsTrueColor() then
|
||||
pal = nil
|
||||
else
|
||||
trueColor = nil
|
||||
end
|
||||
local key = pal and (path .. "#" .. pal.name) or path
|
||||
if not imageCache[key] then
|
||||
local img, pad, padL = nil, 0, 0
|
||||
|
||||
Reference in New Issue
Block a user