From bb3445f81ea70ae1201fa271875b314404aa09cf Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Fri, 6 Aug 2021 19:34:32 +0200 Subject: [PATCH] / top bar scaling in results --- scripts/result.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/result.lua b/scripts/result.lua index df6d2fc..762cfda 100644 --- a/scripts/result.lua +++ b/scripts/result.lua @@ -172,6 +172,8 @@ end local drawTopBar = function() gfx.BeginPath(); 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, topBarImage, 1, 0); end