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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user