mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Make sure that the base object is always the same size as the application window
This commit is contained in:
parent
5b1db7159d
commit
42fd7b3475
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user