Commit 69b3bfd4 authored by jean-pierre charras's avatar jean-pierre charras

added forgotten lines from patch "EEschema selection.patch"

parent 2d94881d
...@@ -733,7 +733,7 @@ void GRSDashedLine( EDA_Rect* ClipBox, ...@@ -733,7 +733,7 @@ void GRSDashedLine( EDA_Rect* ClipBox,
GRLastMoveToX = x2; GRLastMoveToX = x2;
GRLastMoveToY = y2; GRLastMoveToY = y2;
s_DC_lastcolor = -1; 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 ); GRSLine( ClipBox, DC, x1, y1, x2, y2, width, Color );
s_DC_lastcolor = -1; s_DC_lastcolor = -1;
GRSetColorPen( DC, Color, width ); GRSetColorPen( DC, Color, width );
...@@ -748,7 +748,7 @@ void GRSDashedLineTo( EDA_Rect* ClipBox, ...@@ -748,7 +748,7 @@ void GRSDashedLineTo( EDA_Rect* ClipBox,
int Color ) int Color )
{ {
s_DC_lastcolor = -1; 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 ); GRSLine( ClipBox, DC, GRLastMoveToX, GRLastMoveToY, x2, y2, width, Color );
s_DC_lastcolor = -1; s_DC_lastcolor = -1;
GRSetColorPen( DC, Color, width ); GRSetColorPen( DC, Color, width );
...@@ -846,7 +846,7 @@ void GRSMixedLine( EDA_Rect* ClipBox, ...@@ -846,7 +846,7 @@ void GRSMixedLine( EDA_Rect* ClipBox,
int width, int width,
int Color ) int Color )
{ {
GRSetColorPen( DC, Color, width, wxDOT_DASH ); GRSetColorPen( DC, Color, width, wxPENSTYLE_DOT_DASH );
GRSLine( ClipBox, DC, x1, y1, x2, y2, width, Color ); GRSLine( ClipBox, DC, x1, y1, x2, y2, width, Color );
GRSetColorPen( DC, Color, width ); GRSetColorPen( DC, Color, width );
} }
......
...@@ -27,6 +27,8 @@ class EDA_Rect; ...@@ -27,6 +27,8 @@ class EDA_Rect;
//wxWidgets 2.8 compatibility //wxWidgets 2.8 compatibility
#if !wxCHECK_VERSION(2,9,0) #if !wxCHECK_VERSION(2,9,0)
#define wxPENSTYLE_SOLID wxSOLID #define wxPENSTYLE_SOLID wxSOLID
#define wxPENSTYLE_SHORT_DASH wxSHORT_DASH
#define wxPENSTYLE_DOT_DASH wxDOT_DASH
typedef int wxPenStyle; typedef int wxPenStyle;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment