Fixed challenge header title centering
This commit is contained in:
parent
7d7f7be937
commit
ee9e1106f6
|
@ -1,4 +1,3 @@
|
|||
local resx, resy = game.GetResolution();
|
||||
local desw = 1080;
|
||||
local desh = 1920;
|
||||
local scale = 1;
|
||||
|
@ -23,7 +22,7 @@ local drawHeader = function ()
|
|||
|
||||
local headerImageWidth, headerImageHeight = gfx.ImageSize(headerTitleImage)
|
||||
gfx.ImageRect(
|
||||
(desw - headerImageWidth) / 2, (HEADER_HEIGHT - headerImageHeight) / 2,
|
||||
(desw - headerImageWidth) / 2, (HEADER_HEIGHT - headerImageHeight) / 2 - 12, -- asset png is not centered on the y axis
|
||||
headerImageWidth, headerImageHeight,
|
||||
headerTitleImage, 1, 0
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue