diff --git a/common/gr_basic.cpp b/common/gr_basic.cpp index 7d48be5cd7..99a05c6738 100644 --- a/common/gr_basic.cpp +++ b/common/gr_basic.cpp @@ -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 ); } diff --git a/include/gr_basic.h b/include/gr_basic.h index 9e403bcc4f..3a1e474fb7 100644 --- a/include/gr_basic.h +++ b/include/gr_basic.h @@ -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