true color sprites shouldnt show in non color modes

This commit is contained in:
bryanthaboi
2026-08-18 16:06:15 -04:00
parent a1ab5e2cff
commit f7bdaa81f8
7 changed files with 39 additions and 12 deletions
+5 -1
View File
@@ -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