Index: mods/starlit/user.lua ================================================================== --- mods/starlit/user.lua +++ mods/starlit/user.lua @@ -541,11 +541,11 @@ local xc = (idx*48 + 400)*ofs if l.elt and next(del) then l.elt:update('offset', {x=xc, y=1}) else local tex = leds[l.kind].icon:blit(hudAdjustBacklight(leds[l.kind].bg)) - if tx then tex = tex:transform(tx) end + if tx then tex = lib.image(tex:render()):transform(tx) end if not l.elt then l.elt = self:attachImage { tex = tex:render(); align = {x=ofs, y=-1}; pos = {x=.5, y=1}; Index: mods/vtlib/image.lua ================================================================== --- mods/vtlib/image.lua +++ mods/vtlib/image.lua @@ -13,17 +13,17 @@ str = string.format('[combine:%sx%s', self.w, self.h) for _,i in pairs(self.atop) do str = str .. string.format(':%s,%s=(%s)', i.at.x, i.at.y, i.img:render()) end else + for _,i in pairs(self.atop) do + str = '(' .. i.img:render() .. ')^' .. str + end if str ~= '' then str = str .. '(' bracket = true end - for _,i in pairs(self.atop) do - str = '(' .. i.img:render() .. ')^' .. str - end str = str .. self.string end for _,e in pairs(self.fx) do str = str .. '^[' .. e -- be sure to escape ones that take arguments @@ -122,13 +122,15 @@ end; glow = function(self,color) return self:blit(self:multiply(color)) end; }; - construct = function(file, w, h) return { - string = file; - atop = {}; - fx = {}; - combine = w and h and true or nil; - } end; + construct = function(file, w, h) + return { + string = file; + atop = {}; + fx = {}; + combine = w and h and true or nil; + } + end; } return image