From bfcc0adec26baca1de67aedc3efa797360c79c34 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Sat, 22 Dec 2018 17:23:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=20=D0=B2=D1=81=D1=8F=D0=BA=D0=B8?= =?UTF-8?q?=D0=B9,=20=D0=B2=D0=B4=D1=80=D1=83=D0=B3=20=D0=BA=D0=B0=D0=BA?= =?UTF-8?q?=D0=BE=D0=B9-=D1=82=D0=BE=20=D0=B4=D0=BE=D0=BB=D0=B1=D0=BE?= =?UTF-8?q?=D0=B5=D0=B1=20=D1=80=D0=B5=D1=88=D0=B8=D1=82=20OCIF7=20=D0=B3?= =?UTF-8?q?=D1=80=D1=83=D0=B7=D0=B8=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications/MultiScreen/MultiScreen.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Applications/MultiScreen/MultiScreen.lua b/Applications/MultiScreen/MultiScreen.lua index 95a56950..7d328d95 100644 --- a/Applications/MultiScreen/MultiScreen.lua +++ b/Applications/MultiScreen/MultiScreen.lua @@ -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