From eff534136b1b7b170457cd66fa0776d9310519a4 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Thu, 1 Oct 2015 00:01:28 +0300 Subject: [PATCH] aefaef --- Applications/Photoshop/Photoshop.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Applications/Photoshop/Photoshop.lua b/Applications/Photoshop/Photoshop.lua index 85f59261..f418922e 100644 --- a/Applications/Photoshop/Photoshop.lua +++ b/Applications/Photoshop/Photoshop.lua @@ -582,12 +582,16 @@ end ------------------------------------------------ Старт программы -------------------------------------------------------------- ---Создаем пустой мастерпиксельс ---createEmptyMasterPixels() +local args = {...} --Рисуем весь интерфейс drawAll() -new() + +if args[1] == "o" or args[1] == "open" or args[1] == "-o" or args[1] == "load" then + masterPixels = image.load(args[2]) +else + new() +end while true do local e = {event.pull()} @@ -738,7 +742,7 @@ while true do else masterPixels = image.load(data[1]) reCalculateImageSizes() - drawImage() + drawBackgroundAndImage() end end