From 7c808858c9141174809b3a8167c7cd21f184dc4c Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Thu, 1 Jun 2006 10:58:28 +0000 Subject: [PATCH] Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/clrpickerg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/generic/clrpickerg.cpp b/src/generic/clrpickerg.cpp index c6fc40bb4b..e0db6bbb01 100644 --- 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); } } -- 2.50.0