From 5ccbd922c2f6d10ac4303660a6800dffc15ae3f5 Mon Sep 17 00:00:00 2001 From: Hersi Date: Fri, 4 Mar 2022 11:28:29 +0100 Subject: [PATCH] again --- scripts/common/dimensions.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/common/dimensions.lua b/scripts/common/dimensions.lua index 7ba1ade..aef18dc 100644 --- a/scripts/common/dimensions.lua +++ b/scripts/common/dimensions.lua @@ -19,8 +19,6 @@ local dimtable = { } } -dimtable.screen.width, dimtable.screen.height = game.GetResolution() - local function transformToDesignSpace() gfx.Translate((dimtable.screen.width - dimtable.view.width) / 2, 0); gfx.Scale(dimtable.view.width / dimtable.design.width, dimtable.view.height / dimtable.design.height); @@ -35,8 +33,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