Take wxBORDER_THEME, and the default border style, into account
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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,6 +462,7 @@ wxRect wxStdRenderer::GetBorderDimensions(wxBorder border) const
|
||||
|
||||
case wxBORDER_RAISED:
|
||||
case wxBORDER_SUNKEN:
|
||||
case wxBORDER_THEME:
|
||||
width = 2;
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user