summaryrefslogtreecommitdiffhomepage
path: root/not/Layer.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-13 10:00:59 +0200
committerAki <nthirtyone@gmail.com>2017-09-13 10:00:59 +0200
commit2a0cef0fba687e03fd322ac73c511bbb12b1e31c (patch)
treebd432a8a616152994dbef9ef56a3190233ada0ac /not/Layer.lua
parent914049749fc9f6f86b9ba22d5b74a173a2c8a3bc (diff)
downloadroflnauts-2a0cef0fba687e03fd322ac73c511bbb12b1e31c.zip
roflnauts-2a0cef0fba687e03fd322ac73c511bbb12b1e31c.tar.gz
roflnauts-2a0cef0fba687e03fd322ac73c511bbb12b1e31c.tar.bz2
Fixed background bug on non-16:9 screens
Diffstat (limited to 'not/Layer.lua')
-rw-r--r--not/Layer.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/not/Layer.lua b/not/Layer.lua
index 0446599..ebfb28e 100644
--- a/not/Layer.lua
+++ b/not/Layer.lua
@@ -1,4 +1,5 @@
--- A little bit more than just a Canvas.
+-- TODO: Scaled and RealScaled support should be extended.
Layer = require "not.Object":extends()
function Layer:new (width, height)
@@ -43,7 +44,7 @@ function Layer:draw ()
scale = getScale() / self.scale
end
love.graphics.setColor(255, 255, 255, 255)
- love.graphics.draw(self.canvas, 0, 0, 0, scale, scale)
+ love.graphics.draw(self.canvas, nil, nil, nil, scale, scale)
end
return Layer