X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3784bf308fe29d37b723a9601517fb97559ba39c..7118e711dcf3bdb543d5e20cac2c45d50c691979:/include/wx/graphics.h diff --git a/include/wx/graphics.h b/include/wx/graphics.h index f2edd54ca3..915cbfd4e1 100644 --- a/include/wx/graphics.h +++ b/include/wx/graphics.h @@ -309,7 +309,8 @@ extern WXDLLIMPEXP_DATA_CORE(wxGraphicsPath) wxNullGraphicsPath; class wxGraphicsGradientStop { public: - wxGraphicsGradientStop(wxColour col, float pos) + wxGraphicsGradientStop(wxColour col = wxTransparentColour, + float pos = 0.) : m_col(col), m_pos(pos) { @@ -348,8 +349,8 @@ public: { // we can't use Add() here as it relies on having start/end stops as // first/last array elements so do it manually - m_stops.push_back(wxGraphicsGradientStop(startCol, 0.)); - m_stops.push_back(wxGraphicsGradientStop(endCol, 1.)); + m_stops.push_back(wxGraphicsGradientStop(startCol, 0.f)); + m_stops.push_back(wxGraphicsGradientStop(endCol, 1.f)); } // default copy ctor, assignment operator and dtor are ok for this class