From 4fad999a5b5b44a501a493bd21184cde44e8ef7d Mon Sep 17 00:00:00 2001 From: Hersi Date: Fri, 4 Mar 2022 11:28:04 +0100 Subject: [PATCH] hotfix dimensions.lua --- scripts/common/dimensions.lua | 2 +- scripts/multiplayerscreen.lua | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/common/dimensions.lua b/scripts/common/dimensions.lua index bdcfbdd..7ba1ade 100644 --- a/scripts/common/dimensions.lua +++ b/scripts/common/dimensions.lua @@ -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 diff --git a/scripts/multiplayerscreen.lua b/scripts/multiplayerscreen.lua index 782094e..ae3c47b 100644 --- a/scripts/multiplayerscreen.lua +++ b/scripts/multiplayerscreen.lua @@ -869,7 +869,6 @@ end render = function(deltaTime) Dim.updateResolution() - game.Log(Dim.view.width,game.LOGGER_ERROR) Wallpaper.render() Dim.transformToDesignSpace()