Encapsulation and other minor improvements.
* EDA_DRAW_PANEL completely encapsulated. * Moved OSX m_overlay member from EDA_DRAW_PANEL to EDA_DRAW_FRAME where it is used. * Doxygen comment warning fixes.
This commit is contained in:
@@ -99,11 +99,11 @@ void MODULE::DrawAncre( EDA_DRAW_PANEL* panel, wxDC* DC, const wxPoint& offset,
|
||||
if( GetBoard()->IsElementVisible( ANCHOR_VISIBLE ) )
|
||||
{
|
||||
int color = g_ColorsSettings.GetItemColor( ANCHOR_VISIBLE );
|
||||
GRLine( &panel->m_ClipBox, DC,
|
||||
GRLine( panel->GetClipBox(), DC,
|
||||
m_Pos.x - offset.x - anchor_size, m_Pos.y - offset.y,
|
||||
m_Pos.x - offset.x + anchor_size, m_Pos.y - offset.y,
|
||||
0, color );
|
||||
GRLine( &panel->m_ClipBox, DC,
|
||||
GRLine( panel->GetClipBox(), DC,
|
||||
m_Pos.x - offset.x, m_Pos.y - offset.y - anchor_size,
|
||||
m_Pos.x - offset.x, m_Pos.y - offset.y + anchor_size,
|
||||
0, color );
|
||||
@@ -261,7 +261,7 @@ void MODULE::Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, int aDrawMode, const wxPoi
|
||||
|
||||
// Enable these line to draw m_BoundaryBox (debug tests purposes only)
|
||||
#if 0
|
||||
GRRect( &aPanel->m_ClipBox, aDC, m_BoundaryBox, 0, BROWN );
|
||||
GRRect( aPanel->GetClipBox(), aDC, m_BoundaryBox, 0, BROWN );
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user