/ sortwheel not scaling properly

This commit is contained in:
FajsiEx 2021-08-13 20:57:38 +02:00
parent d576a1ce2c
commit 73bfe6b41e
1 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ local activeItemBgImage = gfx.CreateSkinImage(
local titleTextImage = local titleTextImage =
gfx.CreateSkinImage('song_select/sort_wheel/title.png', 0) gfx.CreateSkinImage('song_select/sort_wheel/title.png', 0)
resx, resy = game.GetResolution() local resx, resy = game.GetResolution()
local desw, desh = 1080, 1920; local desw, desh = 1080, 1920;
local scale = 1; local scale = 1;
@ -170,6 +170,10 @@ end
function render(deltaTime, shown) function render(deltaTime, shown)
gfx.Save() gfx.Save()
gfx.ResetTransform() gfx.ResetTransform()
renderedButtonLabels = {};
resetLayoutInformation()
gfx.Scale(scale, scale)
if not shown then if not shown then
transitionEnterReverse = true transitionEnterReverse = true
if (transitionEnterScale > 0) then drawSortWheel(deltaTime) end if (transitionEnterScale > 0) then drawSortWheel(deltaTime) end
@ -179,10 +183,6 @@ function render(deltaTime, shown)
end end
tickTransitions(deltaTime) tickTransitions(deltaTime)
renderedButtonLabels = {};
resetLayoutInformation()
gfx.Scale(scale, scale)
gfx.Restore() gfx.Restore()
end end