X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c1a4ce66a6d0f5830bd80573963dc072f81e6813..c753eb9269d1e6c99b80a2d782ce49d9864ac1da:/src/univ/stdrend.cpp diff --git a/src/univ/stdrend.cpp b/src/univ/stdrend.cpp index 082cf1b884..0159f76d77 100644 --- a/src/univ/stdrend.cpp +++ b/src/univ/stdrend.cpp @@ -413,13 +413,17 @@ void wxStdRenderer::DrawBorder(wxDC& dc, switch ( border ) { case wxBORDER_SUNKEN: + case wxBORDER_THEME: DrawSunkenBorder(dc, &rect); break; + // wxBORDER_DOUBLE and wxBORDER_THEME are currently the same value. +#if 0 case wxBORDER_DOUBLE: DrawAntiSunkenBorder(dc, &rect); DrawExtraBorder(dc, &rect); break; +#endif case wxBORDER_STATIC: DrawStaticBorder(dc, &rect); @@ -458,13 +462,14 @@ wxRect wxStdRenderer::GetBorderDimensions(wxBorder border) const case wxBORDER_RAISED: case wxBORDER_SUNKEN: + case wxBORDER_THEME: width = 2; break; - +#if 0 case wxBORDER_DOUBLE: width = 3; break; - +#endif default: wxFAIL_MSG(_T("unknown border type")); // fall through @@ -691,7 +696,7 @@ void wxStdRenderer::DrawRadioButton(wxDC& dc, DrawCheckOrRadioButton(dc, label, bitmap, rect, flags, align, indexAccel); else DrawCheckOrRadioButton(dc, label, GetRadioBitmap(flags), rect, flags, align, indexAccel); - + } void wxStdRenderer::DrawCheckOrRadioButton(wxDC& dc,