Fix harmless MSVC warning about double to float conversion.
Make the constant double as well as it's compared with other doubles in the code below. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -144,7 +144,7 @@ void wxRibbonMSWArtProvider::SetColourScheme(
|
|||||||
|
|
||||||
// Map primary saturation from [0, 1] to [.25, .75]
|
// Map primary saturation from [0, 1] to [.25, .75]
|
||||||
bool primary_is_gray = false;
|
bool primary_is_gray = false;
|
||||||
const float gray_saturation_threshold = 0.01;
|
static const double gray_saturation_threshold = 0.01;
|
||||||
if(primary_hsl.saturation <= gray_saturation_threshold)
|
if(primary_hsl.saturation <= gray_saturation_threshold)
|
||||||
primary_is_gray = true;
|
primary_is_gray = true;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user