mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Fixed the default error handler's background color when sRGB is enabled for the screen.
This commit is contained in:
@@ -1562,9 +1562,15 @@ function love.errhand(msg)
|
||||
end
|
||||
if love.audio then love.audio.stop() end
|
||||
love.graphics.reset()
|
||||
love.graphics.setBackgroundColor(89, 157, 220)
|
||||
local font = love.graphics.setNewFont(math.floor(14 * love.window.getPixelScale()))
|
||||
|
||||
local sRGB = select(3, love.window.getMode()).srgb
|
||||
if sRGB then
|
||||
love.graphics.setBackgroundColor(love.math.gammaToLinear(89, 157, 220))
|
||||
else
|
||||
love.graphics.setBackgroundColor(89, 157, 220)
|
||||
end
|
||||
|
||||
love.graphics.setColor(255, 255, 255, 255)
|
||||
|
||||
local trace = debug.traceback()
|
||||
|
||||
Reference in New Issue
Block a user