aboutsummaryrefslogtreecommitdiffstats
path: root/fakecanvas.lua
diff options
context:
space:
mode:
Diffstat (limited to 'fakecanvas.lua')
-rw-r--r--fakecanvas.lua2
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