Make sure that the base object is always the same size as the application window

This commit is contained in:
Kenny Shields 2014-07-12 17:49:38 -04:00
parent 5b1db7159d
commit 42fd7b3475

View File

@ -38,6 +38,16 @@ function newobject:update(dt)
return
end
local width, height = love.graphics.getDimensions()
if self.width ~= width then
self.width = width
end
if self.height ~= height then
self.height = height
end
local children = self.children
local internals = self.internals