aboutsummaryrefslogtreecommitdiff
path: root/var.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-06-09 13:50:25 -0700
committer1029chris <1029chris@gmail.com>2016-06-09 13:50:25 -0700
commite8e4af62cad224bdb028ffcf730d7c5c8c2b7482 (patch)
treea1886853deb2606327d4a9c63ce1e97eabd81cc5 /var.lua
parent7b0bc171d659ff4a0dddc724860fdd09f42b08b3 (diff)
Changed some variables
sys.width and sys.height removed love.graphics.getHeight changed to sys.h, same with width
Diffstat (limited to 'var.lua')
-rw-r--r--var.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/var.lua b/var.lua
index 6ee9bab..6e69fea 100644
--- a/var.lua
+++ b/var.lua
@@ -40,7 +40,7 @@ function loadVar()
panel.thick = 30
panel.x = 0
panel.y = 600-panel.thick
- panel.width = sys.width
+ panel.width = sys.w
panel.height = panel.thick
panel.s = {}
panel.s.x = panel.x + 5
@@ -70,7 +70,7 @@ function loadVar()
end
winOpen = true
winHover = false
- minim = love.graphics.getHeight()+10
+ minim = sys.h+10
start = {}
start.cvs = love.graphics.newCanvas(250, 350)
start.o = false
@@ -292,8 +292,6 @@ function loadPre()
fadeOpacity = 0
sys = {}
sys.s = 0
- sys.width = love.graphics.getWidth()
- sys.height = love.graphics.getHeight()
sys.mouse = {}
sys.mouse.p = {}
sys.mouse.x = love.mouse.getX