From 6094b7eb9cbe915e02e02908b77549223f585014 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 12 Sep 2017 19:14:11 +0200 Subject: Scaled Layers drawing (slow) --- not/Layer.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'not/Layer.lua') diff --git a/not/Layer.lua b/not/Layer.lua index 6be61c4..0446599 100644 --- a/not/Layer.lua +++ b/not/Layer.lua @@ -38,8 +38,12 @@ function Layer:clear () end function Layer:draw () + local scale = 1 + if self.scale then + scale = getScale() / self.scale + end love.graphics.setColor(255, 255, 255, 255) - love.graphics.draw(self.canvas) + love.graphics.draw(self.canvas, 0, 0, 0, scale, scale) end return Layer -- cgit v1.1