X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d818458781869bebbd4ac42a886e979f93134db7..29a35dd5fee0e33143a39824e71aefd66e3e4851:/src/common/gdicmn.cpp diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index 2d123c899f..06117b98c2 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -405,7 +405,7 @@ void wxColourDatabase::AddColour(const wxString& name, const wxColour& colour) // ... and we also allow both grey/gray wxString colNameAlt = colName; - if ( !colNameAlt.Replace(_T("GRAY"), _T("GREY")) ) + if ( !colNameAlt.Replace(wxT("GRAY"), wxT("GREY")) ) { // but in this case it is not necessary so avoid extra search below colNameAlt.clear(); @@ -433,7 +433,7 @@ wxColour wxColourDatabase::Find(const wxString& colour) const wxString colName = colour; colName.MakeUpper(); wxString colNameAlt = colName; - if ( !colNameAlt.Replace(_T("GRAY"), _T("GREY")) ) + if ( !colNameAlt.Replace(wxT("GRAY"), wxT("GREY")) ) colNameAlt.clear(); wxStringToColourHashMap::iterator it = m_map->find(colName); @@ -545,6 +545,9 @@ const wxBrush* wxStockGDI::GetBrush(Item item) case BRUSH_GREEN: brush = new wxBrush(*GetColour(COLOUR_GREEN), wxBRUSHSTYLE_SOLID); break; + case BRUSH_YELLOW: + brush = new wxBrush(*GetColour(COLOUR_YELLOW), wxBRUSHSTYLE_SOLID); + break; case BRUSH_GREY: brush = new wxBrush(wxColour(wxT("GREY")), wxBRUSHSTYLE_SOLID); break; @@ -590,6 +593,9 @@ const wxColour* wxStockGDI::GetColour(Item item) case COLOUR_GREEN: colour = new wxColour(0, 255, 0); break; + case COLOUR_YELLOW: + colour = new wxColour(255, 255, 0); + break; case COLOUR_LIGHTGREY: colour = new wxColour(wxT("LIGHT GREY")); break; @@ -680,6 +686,9 @@ const wxPen* wxStockGDI::GetPen(Item item) case PEN_GREEN: pen = new wxPen(*GetColour(COLOUR_GREEN), 1, wxPENSTYLE_SOLID); break; + case PEN_YELLOW: + pen = new wxPen(*GetColour(COLOUR_YELLOW), 1, wxPENSTYLE_SOLID); + break; case PEN_GREY: pen = new wxPen(wxColour(wxT("GREY")), 1, wxPENSTYLE_SOLID); break;