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
+3 -3
View File
@@ -459,7 +459,7 @@ void GERBER_PLOTTER::FlashPadOval( const wxPoint& pos, const wxSize& aSize, doub
&& trace_mode == FILLED )
{
if( orient == 900 || orient == 2700 ) /* orientation turned 90 deg. */
EXCHG( size.x, size.y );
std::swap( size.x, size.y );
DPOINT pos_dev = userToDeviceCoordinates( pos );
selectAperture( size, APERTURE::Oval );
@@ -469,7 +469,7 @@ void GERBER_PLOTTER::FlashPadOval( const wxPoint& pos, const wxSize& aSize, doub
{
if( size.x > size.y )
{
EXCHG( size.x, size.y );
std::swap( size.x, size.y );
if( orient < 2700 )
orient += 900;
@@ -512,7 +512,7 @@ void GERBER_PLOTTER::FlashPadRect( const wxPoint& pos, const wxSize& aSize,
{
case 900:
case 2700: // rotation of 90 degrees or 270 swaps sizes
EXCHG( size.x, size.y );
std::swap( size.x, size.y );
// Pass through
case 0: