X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41d0b41d6873cb50b7b025beb0cf9476d680004c..bbb0ff36dbb57461c3086c6e729aa3acf7a559ec:/src/common/gdicmn.cpp diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index b6c49d06c7..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; @@ -671,12 +677,18 @@ const wxPen* wxStockGDI::GetPen(Item item) case PEN_BLACKDASHED: pen = new wxPen(*GetColour(COLOUR_BLACK), 1, wxPENSTYLE_SHORT_DASH); break; + case PEN_BLUE: + pen = new wxPen(*GetColour(COLOUR_BLUE), 1, wxPENSTYLE_SOLID); + break; case PEN_CYAN: pen = new wxPen(*GetColour(COLOUR_CYAN), 1, wxPENSTYLE_SOLID); break; 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;