diff --git a/common/view/view_overlay.cpp b/common/view/view_overlay.cpp index a8c62afbdd..96c2613616 100644 --- a/common/view/view_overlay.cpp +++ b/common/view/view_overlay.cpp @@ -416,4 +416,11 @@ void VIEW_OVERLAY::SetLineWidth( double aLineWidth ) m_commands.push_back( new COMMAND_SET_WIDTH( aLineWidth ) ); } +void VIEW_OVERLAY::Cross( const VECTOR2D& aP, int aSize ) +{ + Line( aP + VECTOR2D( -aSize, -aSize ), aP + VECTOR2D( aSize, aSize ) ); + Line( aP + VECTOR2D( aSize, -aSize ), aP + VECTOR2D( -aSize, aSize ) ); +} + + } // namespace diff --git a/include/view/view_overlay.h b/include/view/view_overlay.h index 753e0c3178..21e950a5f1 100644 --- a/include/view/view_overlay.h +++ b/include/view/view_overlay.h @@ -79,6 +79,7 @@ public: void Circle( const VECTOR2D& aCenterPoint, double aRadius ); void Arc( const VECTOR2D& aCenterPoint, double aRadius, double aStartAngle, double aEndAngle ); void Rectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint ); + void Cross( const VECTOR2D& aP, int aSize ); // Polyline primitives void Polyline( std::deque& aPointList );