diff options
author | xgoff <antipotroast@gmail.com> | 2012-08-02 11:58:09 -0500 |
---|---|---|
committer | xgoff <antipotroast@gmail.com> | 2012-08-02 11:58:09 -0500 |
commit | 9fd03f0c7b2f4295f8a06a14847f205865b3f577 (patch) | |
tree | d396d597fde99d98c97dbbd04d976bc7f39de71d | |
parent | 0167b360e4c2b1515e24086d62357062cd398b8c (diff) | |
download | love2d-fakecanvas-9fd03f0c7b2f4295f8a06a14847f205865b3f577.tar.gz love2d-fakecanvas-9fd03f0c7b2f4295f8a06a14847f205865b3f577.tar.bz2 love2d-fakecanvas-9fd03f0c7b2f4295f8a06a14847f205865b3f577.tar.xz love2d-fakecanvas-9fd03f0c7b2f4295f8a06a14847f205865b3f577.zip |
those arguments were *supposed* to be optional!
-rw-r--r-- | fakecanvas.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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 |