From 8faf79a4070e3b638ec937021a053084291efa60 Mon Sep 17 00:00:00 2001 From: "evasina2312@gmail.com" Date: Thu, 29 Sep 2022 14:20:33 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=5F1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectMachine/ProjectMachine/DrawningMachine.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectMachine/ProjectMachine/DrawningMachine.cs b/ProjectMachine/ProjectMachine/DrawningMachine.cs index dac69b9..4ece1c0 100644 --- a/ProjectMachine/ProjectMachine/DrawningMachine.cs +++ b/ProjectMachine/ProjectMachine/DrawningMachine.cs @@ -59,7 +59,7 @@ namespace ProjectMachine /// Высота картинки public void SetPosition(int x, int y, int width, int height) { - if (x < 0 || y < 0 || x > width || y > height) + if (x < 0 || y < 0 || x + _machineWidth > width || y + _machineHeight > height) { return; } @@ -124,7 +124,7 @@ namespace ProjectMachine Pen pen = new(Color.Black); Brush brBodyColor = new SolidBrush(Machine.BodyColor); - // Гусеницы + // Граница гусениц g.DrawEllipse(pen, _startPosX, _startPosY + 11, 90, 22); // Кузов