show the renderer name in the no-game's title

This commit is contained in:
Alex Szpakowski
2020-07-29 19:42:38 -03:00
parent a8c879f3bf
commit 5b4de2308d
2 changed files with 11 additions and 0 deletions
+3
View File
@@ -3166,6 +3166,9 @@ function love.nogame()
end
function love.load()
local renderername = love.graphics.getRendererInfo()
love.window.setTitle(love.window.getTitle() .. " - " .. renderername)
love.graphics.setBackgroundColor(43/255, 165/255, 223/255)
love.physics.setMeter(64)
+8
View File
@@ -11879,6 +11879,14 @@ const unsigned char nogame_lua[] =
0x0a,
0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x6c, 0x6f, 0x61,
0x64, 0x28, 0x29, 0x0a,
0x09, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x65, 0x72, 0x6e, 0x61,
0x6d, 0x65, 0x20, 0x3d, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x73,
0x2e, 0x67, 0x65, 0x74, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x28, 0x29, 0x0a,
0x09, 0x09, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x2e, 0x73, 0x65, 0x74, 0x54,
0x69, 0x74, 0x6c, 0x65, 0x28, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x2e, 0x67,
0x65, 0x74, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x28, 0x29, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x20, 0x2d, 0x20, 0x22,
0x20, 0x2e, 0x2e, 0x20, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x0a,
0x0a,
0x09, 0x09, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x73, 0x2e, 0x73, 0x65,
0x74, 0x42, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x34,
0x33, 0x2f, 0x32, 0x35, 0x35, 0x2c, 0x20, 0x31, 0x36, 0x35, 0x2f, 0x32, 0x35, 0x35, 0x2c, 0x20, 0x32, 0x32,