/ apply temporary patch for downloadscreen crashing on small resolutions

This commit is contained in:
FajsiEx 2021-08-09 18:37:55 +02:00
parent a81338f1c5
commit 8eacd04e2e
1 changed files with 2 additions and 2 deletions

View File

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