From 9fd03f0c7b2f4295f8a06a14847f205865b3f577 Mon Sep 17 00:00:00 2001 From: xgoff Date: Thu, 2 Aug 2012 11:58:09 -0500 Subject: those arguments were *supposed* to be optional! --- fakecanvas.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fakecanvas.lua') diff --git a/fakecanvas.lua b/fakecanvas.lua index 172d17b..a58efc4 100644 --- a/fakecanvas.lua +++ b/fakecanvas.lua @@ -275,6 +275,8 @@ end function M.getMaxCanvasSize (hw, hh) local w, h = love.graphics.getWidth(), love.graphics.getHeight() + hw, hh = tonumber(hw) or w, tonumber(hh) or h + if npot_supported then return math.min(hw, w), math.min(hh, h) else -- cgit v1.2.3-54-g00ecf