no changes, just fix typo in variable name

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-04-06 20:02:52 +00:00
parent 4e553af160
commit ddf13afcfe
2 changed files with 4 additions and 5 deletions

View File

@@ -278,7 +278,7 @@ private:
m_colHeaderFg, m_colHeaderFg,
m_colHeaderBg, m_colHeaderBg,
m_colBackground, m_colBackground,
m_colSorrounding; m_colSurrounding;
// the attributes for each of the month days // the attributes for each of the month days
wxCalendarDateAttr *m_attrs[31]; wxCalendarDateAttr *m_attrs[31];

View File

@@ -211,7 +211,7 @@ void wxGenericCalendarCtrl::InitColours()
m_colHighlightFg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT); m_colHighlightFg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
m_colHighlightBg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT); m_colHighlightBg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
m_colBackground = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW); m_colBackground = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
m_colSorrounding = wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT); m_colSurrounding = wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT);
m_colHolidayFg = *wxRED; m_colHolidayFg = *wxRED;
// don't set m_colHolidayBg - by default, same as our bg colour // don't set m_colHolidayBg - by default, same as our bg colour
@@ -1092,9 +1092,8 @@ void wxGenericCalendarCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
if ( date.GetMonth() != m_date.GetMonth() || !IsDateInRange(date) ) if ( date.GetMonth() != m_date.GetMonth() || !IsDateInRange(date) )
{ {
// surrounding week or out-of-range // draw the days of adjacent months in different colour
// draw "disabled" dc.SetTextForeground(m_colSurrounding);
dc.SetTextForeground(m_colSorrounding);
changedColours = true; changedColours = true;
} }
else else