hotfix dimensions.lua

This commit is contained in:
Hersi 2022-03-04 11:28:04 +01:00
parent 7de41e16e1
commit 4fad999a5b
2 changed files with 1 additions and 2 deletions

View File

@ -35,8 +35,8 @@ local function updateResolution(ratio)
local screenWidth, screenHeight = game.GetResolution()
if screenWidth ~= dimtable.screen.width or screenHeight ~= dimtable.screen.height then
dimtable.screen.width, dimtable.screen.height = screenWidth, screenHeight
dimtable.view.width, dimtable.view.height = ratio * dimtable.screen.height, dimtable.screen.height
end
dimtable.view.width, dimtable.view.height = ratio * dimtable.screen.height, dimtable.screen.height
end

View File

@ -869,7 +869,6 @@ end
render = function(deltaTime)
Dim.updateResolution()
game.Log(Dim.view.width,game.LOGGER_ERROR)
Wallpaper.render()
Dim.transformToDesignSpace()