* have the jacket bg animate even for default jacket

This commit is contained in:
FajsiEx 2021-08-06 20:04:34 +02:00
parent 70ccc4a46a
commit ef4fd55b62
1 changed files with 9 additions and 12 deletions

View File

@ -194,7 +194,6 @@ function drawBackground(deltaTime)
local bestScore = diff.scores[1]; local bestScore = diff.scores[1];
if song and diff then if song and diff then
local jacketImage = getJacketImage(song); local jacketImage = getJacketImage(song);
if jacketImage ~= defaultJacketImage then
gfx.BeginPath() gfx.BeginPath()
gfx.ImageRect(0+transitionAfterscrollScale*-300, 0, 900, 900, jacketImage or defaultJacketImage, transitionAfterscrollJacketBgAlpha, 0) gfx.ImageRect(0+transitionAfterscrollScale*-300, 0, 900, 900, jacketImage or defaultJacketImage, transitionAfterscrollJacketBgAlpha, 0)
@ -204,9 +203,7 @@ function drawBackground(deltaTime)
gfx.Rect(0,0,900,900); gfx.Rect(0,0,900,900);
gfx.Fill(); gfx.Fill();
gfx.ClosePath(); gfx.ClosePath();
end gfx.BeginPath();
gfx.BeginPath()
end end
gfx.ImageRect(0, 0, desw, desh, dataPanelImage, 1, 0) gfx.ImageRect(0, 0, desw, desh, dataPanelImage, 1, 0)