From 3c6c7134af886370a51693c73ac7ad0360e2505d Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 6 Oct 2010 20:43:51 +0200 Subject: [PATCH] added forgotten lines from patch "EEschema selection.patch" --- common/gr_basic.cpp | 6 +++--- include/gr_basic.h | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/common/gr_basic.cpp b/common/gr_basic.cpp index 4d6176ca3b..1de9540314 100644 --- a/common/gr_basic.cpp +++ b/common/gr_basic.cpp @@ -107,7 +107,7 @@ static wxDC* s_DC_lastDC = NULL; /* Local functions: */ static void GRSRect( EDA_Rect* aClipBox, wxDC* aDC, int x1, int y1, int x2, int y2, int aWidth, int aColor, - int aStyle = wxSOLID ); + wxPenStyle aStyle = wxPENSTYLE_SOLID ); /* * Macro clipping the trace of a line: @@ -1672,7 +1672,7 @@ void GRRect( EDA_Rect* aClipBox, wxDC* aDC, int x1, int y1, int x2, int y2, int GRSRect( aClipBox, aDC, x1, y1, x2, y2, 0, aColor ); } -void GRRectPs( EDA_Rect* aClipBox, wxDC* aDC, const EDA_Rect& aRect, int aColor, int aStyle ) +void GRRectPs( EDA_Rect* aClipBox, wxDC* aDC, const EDA_Rect& aRect, int aColor, wxPenStyle aStyle ) { int x1 = GRMapX( aRect.GetX() ); int y1 = GRMapY( aRect.GetY() ); @@ -1746,7 +1746,7 @@ void GRFilledRect( EDA_Rect* ClipBox, wxDC* DC, int x1, int y1, int x2, int y2, */ void GRSRect( EDA_Rect* aClipBox, wxDC* aDC, int x1, int y1, int x2, int y2, - int aWidth, int aColor, int aStyle ) + int aWidth, int aColor, wxPenStyle aStyle ) { if( x1 > x2 ) EXCHG( x1, x2 ); diff --git a/include/gr_basic.h b/include/gr_basic.h index 0b92d5d7f3..ef2608e76b 100644 --- a/include/gr_basic.h +++ b/include/gr_basic.h @@ -24,6 +24,12 @@ class EDA_Rect; #define GR_M_MIDDLE_DOWN 0x40000000 #define GR_M_DCLICK 0x80000000 +//wxWidgets 2.8 compatibility +#if !wxCHECK_VERSION(2,9,0) +#define wxPENSTYLE_SOLID wxSOLID +typedef int wxPenStyle; +#endif + extern int g_XorMode; extern int g_DrawBgColor;