From 907be7656bbae31081aef6e928ddc41befcf1368 Mon Sep 17 00:00:00 2001 From: just1valery Date: Tue, 20 Sep 2022 16:22:26 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D1=80=D0=B8=D1=81?= =?UTF-8?q?=D0=BE=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarmlyShip/WarmlyShip/DrawningWarmlyShip.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/WarmlyShip/WarmlyShip/DrawningWarmlyShip.cs b/WarmlyShip/WarmlyShip/DrawningWarmlyShip.cs index 0b8c685..29e8eb8 100644 --- a/WarmlyShip/WarmlyShip/DrawningWarmlyShip.cs +++ b/WarmlyShip/WarmlyShip/DrawningWarmlyShip.cs @@ -122,26 +122,26 @@ PointF[] P = { - new Point((int)(_startPosX),(int) _startPosY + 45), - new Point((int)_startPosX + 170, (int)_startPosY + 45), + new Point((int)(_startPosX),(int) _startPosY + 35), + new Point((int)_startPosX + 170, (int)_startPosY + 35), new Point( (int) _startPosX + 150,(int) _startPosY + 65), new Point((int) _startPosX + 50, (int) _startPosY + 65), - new Point((int) _startPosX, (int) _startPosY + 45), + new Point((int) _startPosX, (int) _startPosY + 35), }; Brush br = new SolidBrush(Ship?.BodyColor ?? Color.Black); g.FillPolygon(br, P); Brush brBlue = new SolidBrush(Color.LightBlue); - g.FillRectangle(brBlue, _startPosX + 70, _startPosY + 20, 70, 25); + g.FillRectangle(brBlue, _startPosX + 70, _startPosY + 1, 70, 34); Pen pen = new(Color.Black); //границы коробля - g.DrawRectangle(pen, _startPosX + 70, _startPosY + 20 , 70, 25); - g.DrawLine(pen, _startPosX, _startPosY + 45, _startPosX + 170, _startPosY + 45); - g.DrawLine(pen, _startPosX, _startPosY + 45, _startPosX + 50, _startPosY + 65); + g.DrawRectangle(pen, _startPosX + 70, _startPosY + 1 , 70, 34); + g.DrawLine(pen, _startPosX, _startPosY + 35, _startPosX + 170, _startPosY + 35); + g.DrawLine(pen, _startPosX, _startPosY + 35, _startPosX + 50, _startPosY + 65); g.DrawLine(pen, _startPosX + 50, _startPosY + 65, _startPosX + 150, _startPosY + 65); - g.DrawLine(pen, _startPosX + 150, _startPosY + 65, _startPosX + 170, _startPosY + 45); + g.DrawLine(pen, _startPosX + 150, _startPosY + 65, _startPosX + 170, _startPosY + 35); } ///