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