From 21c80bb3bb4fb27cccc38345c48d449c9d5cf943 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Wed, 13 Sep 2017 23:45:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D1=84=D0=B0=D1=81=D1=82=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications.cfg | 2 +- Applications/Photoshop/Photoshop.lua | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Applications.cfg b/Applications.cfg index 614b2344..bac9165a 100644 --- a/Applications.cfg +++ b/Applications.cfg @@ -887,7 +887,7 @@ icon="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/Applications/Photoshop/Icon.pic", createShortcut="dock", forceDownload=true, - version=1.08, + version=1.09, resources={ { path="/Localization/Russian.lang", diff --git a/Applications/Photoshop/Photoshop.lua b/Applications/Photoshop/Photoshop.lua index 54cb59a8..45576649 100755 --- a/Applications/Photoshop/Photoshop.lua +++ b/Applications/Photoshop/Photoshop.lua @@ -213,7 +213,7 @@ local function createEmptyMasterPixels() for j = 1, image.getHeight(masterPixels) * image.getWidth(masterPixels) do table.insert(masterPixels, 0x010101) table.insert(masterPixels, 0x010101) - table.insert(masterPixels, 0xFF) + table.insert(masterPixels, 1.0) table.insert(masterPixels, " ") end end @@ -532,7 +532,7 @@ local function drawImage() for i = 3, #masterPixels, 4 do --Рисуем пиксель, если у него прозрачность не абсолютная, ЛИБО имеется какой-то символ --Т.е. даже если прозрачность и охуела, но символ есть, то рисуем его - if masterPixels[i + 2] ~= 0xFF or masterPixels[i + 3] ~= " " then + if masterPixels[i + 2] ~= 1 or masterPixels[i + 3] ~= " " then drawPixel(xPos, yPos, xPixel, yPixel, i) end --Всякие расчеты координат @@ -850,7 +850,7 @@ local function expand() data[2] == localization.fromBottom and countOfPixels or 0, data[2] == localization.fromLeft and countOfPixels or 0, data[2] == localization.fromRight and countOfPixels or 0, - 0x010101, 0x010101, 0xFF, " " + 0x010101, 0x010101, 1, " " ) reCalculateImageSizes(sizes.xStartOfImage, sizes.yStartOfImage) drawAll() @@ -979,7 +979,7 @@ while true do end --Ластик elseif instruments[currentInstrument] == "E" then - brush(x, y, currentBackground, currentForeground, 0xFF, currentSymbol) + brush(x, y, currentBackground, currentForeground, 1, currentSymbol) console("Ластик: клик на точку "..e[3].."x"..e[4]..", координаты в изображении: "..x.."x"..y..", индекс массива изображения: "..iterator) buffer.draw() --Текст @@ -1295,7 +1295,7 @@ while true do elseif action == localization.crop then crop() elseif action == localization.clear then - fillSelection(0x0, 0x0, 0xFF, " ") + fillSelection(0x0, 0x0, 1, " ") elseif action == localization.fill then fillSelection(currentBackground, 0x0, 0x0, " ") elseif action == localization.border then