From e8e4af62cad224bdb028ffcf730d7c5c8c2b7482 Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Thu, 9 Jun 2016 13:50:25 -0700 Subject: Changed some variables sys.width and sys.height removed love.graphics.getHeight changed to sys.h, same with width --- panel.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'panel.lua') diff --git a/panel.lua b/panel.lua index 0ba0687..6a36e23 100644 --- a/panel.lua +++ b/panel.lua @@ -24,8 +24,8 @@ function drawPanelButton(id) end end function drawStart() - panel.width = love.graphics.getWidth() - panel.y = love.graphics.getHeight() + panel.width = sys.w + panel.y = sys.h panel.y = panel.y - panel.thick panel.s.y = panel.y + 5 love.graphics.setColor(colors.win.normal) @@ -125,7 +125,7 @@ function drawMenuItems(id) love.graphics.setColor(colors.win.normal) end function drawMenu() - start.y = love.graphics.getHeight() + start.y = sys.h start.y = start.y-30-350+2 love.graphics.setCanvas(start.cvs) love.graphics.setColor(192, 192, 192) -- cgit