again
This commit is contained in:
parent
4fad999a5b
commit
5ccbd922c2
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue