diff --git a/common/widgets/wx_grid.cpp b/common/widgets/wx_grid.cpp index 8f35492094..2f87611ad9 100644 --- a/common/widgets/wx_grid.cpp +++ b/common/widgets/wx_grid.cpp @@ -148,7 +148,12 @@ void WX_GRID::DrawColLabel( wxDC& dc, int col ) // It is reported that we need to erase the background to avoid display // artefacts, see #12055. + // wxWidgets renamed this variable between 3.1.2 and 3.1.3 ... +#if wxCHECK_VERSION( 3, 1, 3 ) + wxDCBrushChanger setBrush( dc, m_colLabelWin->GetBackgroundColour() ); +#else wxDCBrushChanger setBrush( dc, m_colWindow->GetBackgroundColour() ); +#endif dc.DrawRectangle(rect); rend.DrawBorder( *this, dc, rect ); diff --git a/include/gal/cairo/cairo_gal.h b/include/gal/cairo/cairo_gal.h index 669daf4dd1..94701892a4 100644 --- a/include/gal/cairo/cairo_gal.h +++ b/include/gal/cairo/cairo_gal.h @@ -39,16 +39,6 @@ #include -#if defined(__WXMSW__) -#define SCREEN_DEPTH 24 -#else -#if wxCHECK_VERSION( 2, 9, 0 ) -#define SCREEN_DEPTH wxBITMAP_SCREEN_DEPTH -#else -#define SCREEN_DEPTH 32 -#endif -#endif - /** * @brief Class CAIRO_GAL is the cairo implementation of the graphics abstraction layer. *