Fixed module anchor drawing (GAL).

This commit is contained in:
Maciej Suminski 2014-08-04 10:42:20 +02:00
parent 03a17a284b
commit fa08d9fdcf
2 changed files with 15 additions and 12 deletions

View File

@ -235,7 +235,7 @@ bool PCB_PAINTER::Draw( const VIEW_ITEM* aItem, int aLayer )
break; break;
case PCB_MODULE_T: case PCB_MODULE_T:
draw( (MODULE*) item ); draw( (MODULE*) item, aLayer );
break; break;
case PCB_ZONE_AREA_T: case PCB_ZONE_AREA_T:
@ -771,7 +771,9 @@ void PCB_PAINTER::draw( const TEXTE_MODULE* aText, int aLayer )
} }
void PCB_PAINTER::draw( const MODULE* aModule ) void PCB_PAINTER::draw( const MODULE* aModule, int aLayer )
{
if( aLayer == ITEM_GAL_LAYER( ANCHOR_VISIBLE ) )
{ {
const COLOR4D color = m_pcbSettings.GetColor( aModule, ITEM_GAL_LAYER( ANCHOR_VISIBLE ) ); const COLOR4D color = m_pcbSettings.GetColor( aModule, ITEM_GAL_LAYER( ANCHOR_VISIBLE ) );
@ -786,6 +788,7 @@ void PCB_PAINTER::draw( const MODULE* aModule )
m_gal->DrawLine( center - VECTOR2D( anchorSize, 0 ), center + VECTOR2D( anchorSize, 0 ) ); m_gal->DrawLine( center - VECTOR2D( anchorSize, 0 ), center + VECTOR2D( anchorSize, 0 ) );
m_gal->DrawLine( center - VECTOR2D( 0, anchorSize ), center + VECTOR2D( 0, anchorSize ) ); m_gal->DrawLine( center - VECTOR2D( 0, anchorSize ), center + VECTOR2D( 0, anchorSize ) );
} }
}
void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone ) void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone )

View File

@ -207,7 +207,7 @@ protected:
void draw( const DRAWSEGMENT* aSegment, int aLayer ); void draw( const DRAWSEGMENT* aSegment, int aLayer );
void draw( const TEXTE_PCB* aText, int aLayer ); void draw( const TEXTE_PCB* aText, int aLayer );
void draw( const TEXTE_MODULE* aText, int aLayer ); void draw( const TEXTE_MODULE* aText, int aLayer );
void draw( const MODULE* aModule ); void draw( const MODULE* aModule, int aLayer );
void draw( const ZONE_CONTAINER* aZone ); void draw( const ZONE_CONTAINER* aZone );
void draw( const DIMENSION* aDimension, int aLayer ); void draw( const DIMENSION* aDimension, int aLayer );
void draw( const PCB_TARGET* aTarget ); void draw( const PCB_TARGET* aTarget );