mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Added redraw in error screen (thanks ToxicFrog)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user