На всякий, вдруг какой-то долбоеб решит OCIF7 грузить

This commit is contained in:
Igor Timofeev 2018-12-22 17:23:04 +03:00
parent 83d01c69d7
commit bfcc0adec2

View File

@ -123,16 +123,17 @@ local function mainMenu(force)
clearScreens()
local background, foreground, currentBackground, currentForeground, currentAddress
local background, foreground, symbol, currentBackground, currentForeground, currentAddress
for y = 1, height do
for x = 1, width do
background = color.to24Bit(string.byte(file:read(1)))
foreground = color.to24Bit(string.byte(file:read(1)))
file:read(1)
symbol = fs.readUnicodeChar(file)
local xMonitor = math.ceil(x / baseResolutionWidth)
local yMonitor = math.ceil(y / baseResolutionHeight)
if config.map[yMonitor] and config.map[yMonitor][xMonitor] then
if currentAddress ~= config.map[yMonitor][xMonitor] then
GPUProxy.bind(config.map[yMonitor][xMonitor], false)
@ -152,7 +153,7 @@ local function mainMenu(force)
currentForeground = foreground
end
GPUProxy.set(x - (xMonitor - 1) * baseResolutionWidth, y - (yMonitor - 1) * baseResolutionHeight, fs.readUnicodeChar(file))
GPUProxy.set(x - (xMonitor - 1) * baseResolutionWidth, y - (yMonitor - 1) * baseResolutionHeight, symbol)
end
end
end