/ top bar scaling in results

This commit is contained in:
FajsiEx 2021-08-06 19:34:32 +02:00
parent 570e1d2c6a
commit bb3445f81e
1 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,8 @@ end
local drawTopBar = function() local drawTopBar = function()
gfx.BeginPath(); gfx.BeginPath();
local tw, th = gfx.ImageSize(topBarImage); local tw, th = gfx.ImageSize(topBarImage);
th = (desw/tw)*th; -- recalculate the height of the bar to scale it down
gfx.ImageRect(0, -th * (1 - Easing.outQuad(transitionEnterScale)), desw, th, gfx.ImageRect(0, -th * (1 - Easing.outQuad(transitionEnterScale)), desw, th,
topBarImage, 1, 0); topBarImage, 1, 0);
end end