X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe1efe6ab784b0f364e7e949ac0afb4bbc3215d2..f369c7c2841c0534424f2c184783c1a2070012cf:/src/common/effects.cpp diff --git a/src/common/effects.cpp b/src/common/effects.cpp index 8f34220fd6..fe7a35e25e 100644 --- a/src/common/effects.cpp +++ b/src/common/effects.cpp @@ -25,6 +25,8 @@ #include "wx/gdicmn.h" #endif //WX_PRECOMP +#if WXWIN_COMPATIBILITY_2_8 + /* * wxEffectsImpl: various 3D effects */ @@ -55,11 +57,11 @@ wxEffectsImpl::wxEffectsImpl(const wxColour& highlightColour, const wxColour& li // Draw a sunken edge void wxEffectsImpl::DrawSunkenEdge(wxDC& dc, const wxRect& rect, int WXUNUSED(borderSize)) { - wxPen highlightPen(m_highlightColour, 1, wxSOLID); - wxPen lightShadowPen(m_lightShadow, 1, wxSOLID); - wxPen facePen(m_faceColour, 1, wxSOLID); - wxPen mediumShadowPen(m_mediumShadow, 1, wxSOLID); - wxPen darkShadowPen(m_darkShadow, 1, wxSOLID); + wxPen highlightPen(m_highlightColour, 1, wxPENSTYLE_SOLID); + wxPen lightShadowPen(m_lightShadow, 1, wxPENSTYLE_SOLID); + wxPen facePen(m_faceColour, 1, wxPENSTYLE_SOLID); + wxPen mediumShadowPen(m_mediumShadow, 1, wxPENSTYLE_SOLID); + wxPen darkShadowPen(m_darkShadow, 1, wxPENSTYLE_SOLID); //// LEFT AND TOP // Draw a medium shadow pen on left and top, followed by dark shadow line to @@ -122,3 +124,6 @@ bool wxEffectsImpl::TileBitmap(const wxRect& rect, wxDC& dc, const wxBitmap& bit return true; } + +#endif // WXWIN_COMPATIBILITY_2_8 +