]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/init.h
Avoid conflict between new transparency API and old background support.
[wxWidgets.git] / include / wx / init.h
index 6f7894eb42d9ece98e28f9aa4d7d10f0d7812365..7cdcda57f8b49014ca14f98f351375f24e0ef971 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     29.06.2003
 // RCS-ID:      $Id$
 // Copyright:   (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_INIT_H_
@@ -72,7 +72,10 @@ class WXDLLIMPEXP_BASE wxInitializer
 {
 public:
     // initialize the library
-    wxInitializer() { m_ok = wxInitialize(); }
+    wxInitializer(int argc = 0, wxChar **argv = NULL)
+    {
+        m_ok = wxInitialize(argc, argv);
+    }
 
     // has the initialization been successful? (explicit test)
     bool IsOk() const { return m_ok; }