]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/graphics.h
Move wxMSW wxMenu::GetWindow() down to wxMenuBase.
[wxWidgets.git] / include / wx / graphics.h
index f2edd54ca30b25d0b6eb5c49c0ecc418431715db..915cbfd4e197e07ebc6ae6a412e64216070333e8 100644 (file)
@@ -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