From 6c01071548e8267b6fffbb209bcccd0b894e18c8 Mon Sep 17 00:00:00 2001 From: IgorTimofeev Date: Wed, 3 Jan 2024 11:13:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D0=BD?= =?UTF-8?q?=D0=BE=D1=80=D0=BC=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D1=81?= =?UTF-8?q?=D0=B5=D0=BB=D0=B5=D0=BA=D1=82=D0=BE=D1=80,=20=D1=82.=D0=BA.=20?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D1=80=D1=8B=D0=B9=20-=20=D0=B3=D0=BE=D0=B2?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=B3=D0=BE=D0=B2=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications/Picture Edit.app/Tools/1.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Applications/Picture Edit.app/Tools/1.lua b/Applications/Picture Edit.app/Tools/1.lua index c2bb327b..e9ff2a6a 100644 --- a/Applications/Picture Edit.app/Tools/1.lua +++ b/Applications/Picture Edit.app/Tools/1.lua @@ -172,6 +172,7 @@ end selector.eventHandler = tool.eventHandler selector.draw = function() + -- Border local temp = true for x = selector.x + 1, selector.x + selector.width - 2 do @@ -194,9 +195,11 @@ selector.draw = function() screen.drawText(selector.x + selector.width - 1, selector.y, 0x0, "┓") screen.drawText(selector.x, selector.y + selector.height - 1, 0x0, "┗") - screen.drawText(selector.x, selector.y, 0x66FF80, "●") - screen.drawText(selector.x + selector.width - 1, selector.y + selector.height - 1, 0x66FF80, "●") + -- Corners + screen.drawText(touchX, touchY, 0x66FF80, "●") + screen.drawText(dragX, dragY, 0x66FF80, "●") + -- Size temp = selector.width .. " px" screen.drawText(math.floor(selector.x + selector.width / 2 - #temp / 2), selector.y + selector.height, 0xFFFFFF, temp)