rm unused window argument in errhand;

This commit is contained in:
bjorn 2020-08-19 14:01:31 -06:00
parent ec257b179f
commit 6fd80d10a1
1 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ function lovr.errhand(message, traceback)
local width, lines = font:getWidth(message, wrap)
local height = 2.6 + lines
local y = math.min(height / 2, 10)
local function render(window)
local function render()
lovr.graphics.print('Error', -width / 2, y, -20, 1.6, 0, 0, 0, 0, nil, 'left', 'top')
lovr.graphics.print(message, -width / 2, y - 2.6, -20, 1.0, 0, 0, 0, 0, wrap, 'left', 'top')
end
@ -244,7 +244,7 @@ function lovr.errhand(message, traceback)
end
if lovr.graphics.hasWindow() then
lovr.graphics.clear()
render(true)
render()
end
lovr.graphics.present()
end