mirror of
https://github.com/love2d/love.git
synced 2026-08-13 00:50:51 +02:00
Merged default into minor
--HG-- branch : minor
This commit is contained in:
+2
-16
@@ -476,22 +476,8 @@ function love.init()
|
||||
|
||||
print(msg)
|
||||
|
||||
local can_display = love.window and love.window.isCreated()
|
||||
can_display = can_display and love.graphics and love.graphics.isCreated()
|
||||
|
||||
if can_display and love.timer and love.event then
|
||||
love.graphics.setBackgroundColor(89, 157, 220)
|
||||
love.graphics.origin()
|
||||
|
||||
local start = love.timer.getTime()
|
||||
while love.timer.getTime() < start + 4 do
|
||||
love.event.pump()
|
||||
love.graphics.clear()
|
||||
love.graphics.print(msg, 70, 70)
|
||||
love.graphics.present()
|
||||
love.timer.sleep(1/20)
|
||||
end
|
||||
love.graphics.setBackgroundColor(0, 0, 0)
|
||||
if love.window then
|
||||
love.window.showMessageBox("Compatibility Warning", msg, "warning")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user