Browse Source

Merge pull request #1871 from zombrodo/fix/font-deprecation

fix: remove usage of setNewFont on error handler
Sasha Szpakowski 2 years ago
parent
commit
69c14d22b7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/modules/love/callbacks.lua

+ 2 - 1
src/modules/love/callbacks.lua

@@ -232,7 +232,8 @@ function love.errhand(msg)
 	if love.audio then love.audio.stop() end
 	if love.audio then love.audio.stop() end
 
 
 	love.graphics.reset()
 	love.graphics.reset()
-	local font = love.graphics.setNewFont(14)
+	local font = love.graphics.newFont(14)
+	love.graphics.setFont(font)
 
 
 	love.graphics.setColor(1, 1, 1)
 	love.graphics.setColor(1, 1, 1)