wxColour(const char *) ctor related modifications
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -512,15 +512,6 @@ wxPen *wxPenList::FindOrCreatePen (const wxColour& colour, int width, int style)
|
||||
return pen;
|
||||
}
|
||||
|
||||
wxPen *wxPenList::FindOrCreatePen (const wxString& colour, int width, int style)
|
||||
{
|
||||
wxColour *the_colour = wxTheColourDatabase->FindColour (colour);
|
||||
if (the_colour)
|
||||
return FindOrCreatePen (*the_colour, width, style);
|
||||
else
|
||||
return (wxPen *) NULL;
|
||||
}
|
||||
|
||||
wxBrushList::~wxBrushList ()
|
||||
{
|
||||
#ifdef __WXMSW__
|
||||
@@ -562,15 +553,6 @@ wxBrush *wxBrushList::FindOrCreateBrush (const wxColour& colour, int style)
|
||||
return brush;
|
||||
}
|
||||
|
||||
wxBrush *wxBrushList::FindOrCreateBrush (const wxString& colour, int style)
|
||||
{
|
||||
wxColour *the_colour = wxTheColourDatabase->FindColour (colour);
|
||||
if (the_colour)
|
||||
return FindOrCreateBrush (*the_colour, style);
|
||||
else
|
||||
return (wxBrush *) NULL;
|
||||
}
|
||||
|
||||
void wxBrushList::RemoveBrush (wxBrush * brush)
|
||||
{
|
||||
DeleteObject (brush);
|
||||
|
||||
Reference in New Issue
Block a user