/ apply temporary patch for downloadscreen crashing on small resolutions
This commit is contained in:
parent
a81338f1c5
commit
8eacd04e2e
|
@ -7,8 +7,8 @@ local diffColors = {{50,50,127}, {50,127,50}, {127,50,50}, {127, 50, 127}}
|
||||||
local entryW = 770
|
local entryW = 770
|
||||||
local entryH = 320
|
local entryH = 320
|
||||||
local resX,resY = game.GetResolution()
|
local resX,resY = game.GetResolution()
|
||||||
local xCount = math.floor(resX / entryW)
|
local xCount = math.max(1, math.floor(resX / entryW))
|
||||||
local yCount = math.floor(resY / entryH)
|
local yCount = math.max(1, math.floor(resY / entryH))
|
||||||
local xOffset = (resX - xCount * entryW) / 2
|
local xOffset = (resX - xCount * entryW) / 2
|
||||||
local cursorPos = 0
|
local cursorPos = 0
|
||||||
local cursorPosX = 0
|
local cursorPosX = 0
|
||||||
|
|
Loading…
Reference in New Issue