hotfix dimensions.lua
This commit is contained in:
parent
7de41e16e1
commit
4fad999a5b
|
@ -35,8 +35,8 @@ local function updateResolution(ratio)
|
||||||
local screenWidth, screenHeight = game.GetResolution()
|
local screenWidth, screenHeight = game.GetResolution()
|
||||||
if screenWidth ~= dimtable.screen.width or screenHeight ~= dimtable.screen.height then
|
if screenWidth ~= dimtable.screen.width or screenHeight ~= dimtable.screen.height then
|
||||||
dimtable.screen.width, dimtable.screen.height = screenWidth, screenHeight
|
dimtable.screen.width, dimtable.screen.height = screenWidth, screenHeight
|
||||||
dimtable.view.width, dimtable.view.height = ratio * dimtable.screen.height, dimtable.screen.height
|
|
||||||
end
|
end
|
||||||
|
dimtable.view.width, dimtable.view.height = ratio * dimtable.screen.height, dimtable.screen.height
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -869,7 +869,6 @@ end
|
||||||
render = function(deltaTime)
|
render = function(deltaTime)
|
||||||
|
|
||||||
Dim.updateResolution()
|
Dim.updateResolution()
|
||||||
game.Log(Dim.view.width,game.LOGGER_ERROR)
|
|
||||||
Wallpaper.render()
|
Wallpaper.render()
|
||||||
|
|
||||||
Dim.transformToDesignSpace()
|
Dim.transformToDesignSpace()
|
||||||
|
|
Loading…
Reference in New Issue