summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--not/World.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/not/World.lua b/not/World.lua
index 5492c76..a4d0f97 100644
--- a/not/World.lua
+++ b/not/World.lua
@@ -94,6 +94,7 @@ function World:buildMap ()
local bg = self:createDecoration(x, y, op.background)
if op.animations then
bg:setAnimationsList(op.animations)
+ _,_,width,height = bg:getAnimations()[1]:getViewport()
end
bg.layer = self:addLayer(width, height, op.ratio)
end