This commit is contained in:
Hersi 2022-03-04 11:28:29 +01:00
parent 4fad999a5b
commit 5ccbd922c2
1 changed files with 1 additions and 3 deletions

View File

@ -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