Warning fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-06-01 10:58:28 +00:00
parent 3f26ef3142
commit 7c808858c9

View File

@@ -73,10 +73,11 @@ bool wxGenericColourButton::Create( wxWindow *parent, wxWindowID id,
void wxGenericColourButton::InitColourData() void wxGenericColourButton::InitColourData()
{ {
ms_data.SetChooseFull(true); ms_data.SetChooseFull(true);
for (int i = 0; i < 16; i++) unsigned char grey = 0;
for (int i = 0; i < 16; i++, grey += 16)
{ {
// fill with grey tones the custom colors palette // fill with grey tones the custom colors palette
wxColour colour(i*16, i*16, i*16); wxColour colour(grey, grey, grey);
ms_data.SetCustomColour(i, colour); ms_data.SetCustomColour(i, colour);
} }
} }