avoid warnings about double-to-float conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -55,7 +55,7 @@ wxString Col2SVG(wxColour c, float *opacity)
|
||||
{
|
||||
if ( c.Alpha() != wxALPHA_OPAQUE )
|
||||
{
|
||||
*opacity = c.Alpha()/255.;
|
||||
*opacity = c.Alpha() / 255.0f;
|
||||
|
||||
// Remove the alpha before using GetAsString(wxC2S_HTML_SYNTAX) as it
|
||||
// doesn't support colours with alpha channel.
|
||||
|
Reference in New Issue
Block a user