projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f26ef3
)
Warning fix.
author
Włodzimierz Skiba
<abx@abx.art.pl>
Thu, 1 Jun 2006 10:58:28 +0000
(10:58 +0000)
committer
Włodzimierz Skiba
<abx@abx.art.pl>
Thu, 1 Jun 2006 10:58:28 +0000
(10:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39510
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/generic/clrpickerg.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/generic/clrpickerg.cpp
b/src/generic/clrpickerg.cpp
index c6fc40bb4bf835014c5d00d8b67020659cf8b204..e0db6bbb012be62eb19d0452f7939f1621de44de 100644
(file)
--- a/
src/generic/clrpickerg.cpp
+++ b/
src/generic/clrpickerg.cpp
@@
-73,10
+73,11
@@
bool wxGenericColourButton::Create( wxWindow *parent, wxWindowID id,
void wxGenericColourButton::InitColourData()
{
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
- wxColour colour(
i*16, i*16, i*16
);
+ wxColour colour(
grey, grey, grey
);
ms_data.SetCustomColour(i, colour);
}
}