X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe1efe6ab784b0f364e7e949ac0afb4bbc3215d2..cc4d5638c66a409e421420ed7110917755a66788:/src/common/effects.cpp diff --git a/src/common/effects.cpp b/src/common/effects.cpp index 8f34220fd6..55a40be7ec 100644 --- a/src/common/effects.cpp +++ b/src/common/effects.cpp @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 25/4/2000 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -25,6 +24,8 @@ #include "wx/gdicmn.h" #endif //WX_PRECOMP +#if WXWIN_COMPATIBILITY_2_8 + /* * wxEffectsImpl: various 3D effects */ @@ -55,11 +56,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 +123,6 @@ bool wxEffectsImpl::TileBitmap(const wxRect& rect, wxDC& dc, const wxBitmap& bit return true; } + +#endif // WXWIN_COMPATIBILITY_2_8 +