changed wxColourData default palette to NULL colours instead of white

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-06-04 16:03:03 +00:00
parent 274ad000d2
commit 393c836c33
4 changed files with 20 additions and 14 deletions

View File

@@ -88,12 +88,9 @@
wxColourData::wxColourData()
{
int i;
for (i = 0; i < 16; i++)
m_custColours[i].Set(255, 255, 255);
m_chooseFull = FALSE;
m_chooseFull = false;
m_dataColour.Set(0,0,0);
// m_custColours are wxNullColours initially
}
wxColourData::wxColourData(const wxColourData& data)
@@ -108,16 +105,15 @@ wxColourData::~wxColourData()
void wxColourData::SetCustomColour(int i, const wxColour& colour)
{
if (i > 15 || i < 0)
return;
wxCHECK_RET( (i >= 0 && i < 16), _T("custom colour index out of range") );
m_custColours[i] = colour;
}
wxColour wxColourData::GetCustomColour(int i)
{
if (i > 15 || i < 0)
return wxColour(0,0,0);
wxCHECK_MSG( (i >= 0 && i < 16), wxColour(0,0,0),
_T("custom colour index out of range") );
return m_custColours[i];
}