Warning fixes for BCC, VC, OW and MinGW.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-09-26 13:48:01 +00:00
parent 812a5849e5
commit 38d4b1e4bc
3 changed files with 15 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// Name: image.cpp
// Name: src/common/image.cpp
// Purpose: wxImage
// Author: Robert Roebling
// RCS-ID: $Id$
@@ -1778,7 +1778,7 @@ wxImage::HSVValue wxImage::RGBtoHSV(const RGBValue& rgb)
const double value = maximumRGB;
double hue, saturation;
double hue = 0.0, saturation;
const double deltaRGB = maximumRGB - minimumRGB;
if ( wxIsNullDouble(deltaRGB) )
{
@@ -1801,6 +1801,10 @@ wxImage::HSVValue wxImage::RGBtoHSV(const RGBValue& rgb)
case BLUE:
hue = 4.0 + (red - green) / deltaRGB;
break;
default:
wxFAIL_MSG(wxT("hue not specified"));
break;
}
hue /= 6.0;