added forgotten lines from patch "EEschema selection.patch"

This commit is contained in:
jean-pierre charras 2010-10-06 22:16:31 +02:00
parent 2d94881dbe
commit 69b3bfd471
2 changed files with 5 additions and 3 deletions

View File

@ -733,7 +733,7 @@ void GRSDashedLine( EDA_Rect* ClipBox,
GRLastMoveToX = x2;
GRLastMoveToY = y2;
s_DC_lastcolor = -1;
GRSetColorPen( DC, Color, width, wxSHORT_DASH );
GRSetColorPen( DC, Color, width, wxPENSTYLE_SHORT_DASH );
GRSLine( ClipBox, DC, x1, y1, x2, y2, width, Color );
s_DC_lastcolor = -1;
GRSetColorPen( DC, Color, width );
@ -748,7 +748,7 @@ void GRSDashedLineTo( EDA_Rect* ClipBox,
int Color )
{
s_DC_lastcolor = -1;
GRSetColorPen( DC, Color, width, wxSHORT_DASH );
GRSetColorPen( DC, Color, width, wxPENSTYLE_SHORT_DASH );
GRSLine( ClipBox, DC, GRLastMoveToX, GRLastMoveToY, x2, y2, width, Color );
s_DC_lastcolor = -1;
GRSetColorPen( DC, Color, width );
@ -846,7 +846,7 @@ void GRSMixedLine( EDA_Rect* ClipBox,
int width,
int Color )
{
GRSetColorPen( DC, Color, width, wxDOT_DASH );
GRSetColorPen( DC, Color, width, wxPENSTYLE_DOT_DASH );
GRSLine( ClipBox, DC, x1, y1, x2, y2, width, Color );
GRSetColorPen( DC, Color, width );
}

View File

@ -27,6 +27,8 @@ class EDA_Rect;
//wxWidgets 2.8 compatibility
#if !wxCHECK_VERSION(2,9,0)
#define wxPENSTYLE_SOLID wxSOLID
#define wxPENSTYLE_SHORT_DASH wxSHORT_DASH
#define wxPENSTYLE_DOT_DASH wxDOT_DASH
typedef int wxPenStyle;
#endif