mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Fixed TrueTypeFont incorrectly handling display mode changes.
This commit is contained in:
@@ -20,7 +20,7 @@ freely, subject to the following restrictions:
|
||||
|
||||
love.graphics.print = function (...)
|
||||
if not love.graphics.getFont() then
|
||||
love.graphics.setFont(love._vera, 12)
|
||||
love.graphics.setFont(love._vera_ttf, 12)
|
||||
end
|
||||
love.graphics.print1(...)
|
||||
love.graphics.print = love.graphics.print1
|
||||
@@ -28,7 +28,7 @@ end
|
||||
|
||||
love.graphics.printf = function (...)
|
||||
if not love.graphics.getFont() then
|
||||
love.graphics.setFont(love._vera, 12)
|
||||
love.graphics.setFont(love._vera_ttf, 12)
|
||||
end
|
||||
love.graphics.printf1(...)
|
||||
love.graphics.printf = love.graphics.printf1
|
||||
|
||||
Reference in New Issue
Block a user