From 335329785884bc0f3d66a7bd50b2efc4ed796dec Mon Sep 17 00:00:00 2001 From: Marco Serantoni Date: Mon, 23 Dec 2013 16:14:22 +0100 Subject: [PATCH] [MacOSX] Fixing Zone visualization and removing not working code --- common/gr_basic.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/common/gr_basic.cpp b/common/gr_basic.cpp index 9052ac74f5..bc2ad9daed 100644 --- a/common/gr_basic.cpp +++ b/common/gr_basic.cpp @@ -599,25 +599,6 @@ void GRLineArray( EDA_RECT* aClipBox, wxDC* aDC, std::vector& aLines, { GRSetColorPen( aDC, aColor, aWidth ); -#if defined( USE_WX_GRAPHICS_CONTEXT ) || defined(__WXMAC__) - wxGraphicsContext* gc = wxGraphicsContext::Create( aDC ); - wxASSERT( gc ); - gc->Clip( aClipBox->GetX(), aClipBox->GetY(), aClipBox->GetRight(), aClipBox->GetHeight() ); - wxGraphicsPath path = gc->CreatePath(); - - for( unsigned i = 0; i < aLines.size(); ) - { - path.MoveToPoint( aLines[i].x, aLines[i].y ); - i++; - path.AddLineToPoint( aLines[i].x, aLines[i].y ); - i++; - } - - gc->StrokePath( path ); - gc->ResetClip(); - delete gc; -#else - if( aClipBox ) aClipBox->Inflate(aWidth/2); for( unsigned i = 0; i < aLines.size(); i += 2) @@ -633,7 +614,6 @@ void GRLineArray( EDA_RECT* aClipBox, wxDC* aDC, std::vector& aLines, } if( aClipBox ) aClipBox->Inflate(-aWidth/2); -#endif }