2021-07-25 20:10:06 +02:00
|
|
|
local backgroundImage = gfx.CreateSkinImage("song_select/bg.png", 1)
|
|
|
|
|
|
|
|
render = function(deltaTime)
|
2021-07-30 16:37:01 +02:00
|
|
|
-- gfx.ResetTransform()
|
2021-07-25 20:10:06 +02:00
|
|
|
|
2021-07-30 16:37:01 +02:00
|
|
|
-- local resx, resy = game.GetResolution()
|
|
|
|
-- local desw = 1080
|
|
|
|
-- local desh = 1920
|
|
|
|
-- local scale = resy / desh
|
2021-07-25 20:10:06 +02:00
|
|
|
|
2021-07-30 16:37:01 +02:00
|
|
|
-- local xshift = (resx - desw * scale) / 2
|
|
|
|
-- local yshift = (resy - desh * scale) / 2
|
2021-07-25 20:10:06 +02:00
|
|
|
|
2021-07-30 16:37:01 +02:00
|
|
|
-- gfx.Translate(xshift, yshift)
|
|
|
|
-- gfx.Scale(scale, scale)
|
2021-07-25 20:10:06 +02:00
|
|
|
|
2021-07-30 16:37:01 +02:00
|
|
|
-- gfx.BeginPath()
|
|
|
|
-- gfx.ImageRect(0, 0, desw, desh, backgroundImage, 1, 0)
|
2021-07-25 20:10:06 +02:00
|
|
|
end
|