summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2017-01-08 22:26:36 +0100
committerPiotr Dobrowolski <admin@tastycode.pl>2017-01-08 22:28:03 +0100
commit6d74bedd83082edcbb13423981f3db99b2de4bdb (patch)
tree7476c1313505c66072dda7a8372aa4575297fc5e
parentcac836c793a917686ddfdbdc8b9ccac5c7622853 (diff)
downloadlove2d-signage-6d74bedd83082edcbb13423981f3db99b2de4bdb.tar.gz
love2d-signage-6d74bedd83082edcbb13423981f3db99b2de4bdb.tar.bz2
love2d-signage-6d74bedd83082edcbb13423981f3db99b2de4bdb.tar.xz
love2d-signage-6d74bedd83082edcbb13423981f3db99b2de4bdb.zip
Fix typo
-rw-r--r--main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.lua b/main.lua
index dce898d..19f3ec3 100644
--- a/main.lua
+++ b/main.lua
@@ -60,12 +60,12 @@ function love.draw()
oldw, oldh = love.graphics.getWidth, love.graphics.getHeight
love.graphics.getWidth, love.graphics.getHeight = getw, geth
- cofnig.screens[state.currentScreen].render()
+ config.screens[state.currentScreen].render()
if state.transitioning then
-- Render next screen into canvas and fade accordingly
secondaryCanvas:renderTo(config.screens[state.currentScreen % #config.screens + 1].render)
- love.graphics.setColor(255, 255, 255, 255 * (state.stateCounter / state.transitionTime)) -- red, green, blue, opacity (this would be white with 20% opacity)
+ love.graphics.setColor(255, 255, 255, 255 * (state.stateCounter / config.transitionTime)) -- red, green, blue, opacity (this would be white with 20% opacity)
love.graphics.draw(secondaryCanvas, 0, 0)
end