Added redraw in error screen (thanks ToxicFrog)

This commit is contained in:
bart@bartbes.ath.cx
2010-01-06 15:16:17 +01:00
parent 6fde5de6b6
commit 09ca3053e1
2 changed files with 160 additions and 142 deletions
+8 -2
View File
@@ -747,9 +747,13 @@ function love.errhand(msg)
p = string.gsub(p, "\t", "")
p = string.gsub(p, "%[string \"(.-)\"%]", "%1")
love.graphics.printf(p, 70, 70, love.graphics.getWidth() - 70)
local function draw()
love.graphics.clear()
love.graphics.printf(p, 70, 70, love.graphics.getWidth() - 70)
love.graphics.present()
end
love.graphics.present()
draw()
while true do
e, a, b, c = love.event.wait()
@@ -761,6 +765,8 @@ function love.errhand(msg)
return
end
draw()
end
end