Cleanup: remove unnecessary macros EXCHG and NEGATE. add MIRROR macro.

This commit is contained in:
unknown
2015-06-26 15:41:56 +02:00
committed by jean-pierre charras
parent 3e398ce1c6
commit 71b3125d8e
61 changed files with 238 additions and 299 deletions
+2 -2
View File
@@ -508,7 +508,7 @@ void DXF_PLOTTER::Arc( const wxPoint& centre, double StAngle, double EndAngle, i
// If StAngle > EndAngle, it is CW. So transform it to CCW
if( StAngle > EndAngle )
{
EXCHG( StAngle, EndAngle );
std::swap( StAngle, EndAngle );
}
DPOINT centre_dev = userToDeviceCoordinates( centre );
@@ -536,7 +536,7 @@ void DXF_PLOTTER::FlashPadOval( const wxPoint& pos, const wxSize& aSize, double
* (Oval vertical orientation 0) */
if( size.x > size.y )
{
EXCHG( size.x, size.y );
std::swap( size.x, size.y );
orient = AddAngles( orient, 900 );
}