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); } ///