X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58ed4361e90ebca9e84b112dd4791dee38503556..e0749635a578f8d21a33126702fdf095b1eb69bb:/samples/splash/splash.cpp diff --git a/samples/splash/splash.cpp b/samples/splash/splash.cpp index 9fe6957fe7..644caf2d76 100644 --- a/samples/splash/splash.cpp +++ b/samples/splash/splash.cpp @@ -90,7 +90,7 @@ private: // IDs for the controls and the menu commands enum { - Minimal_Run = wxID_HIGHEST + 1, + Minimal_Run = wxID_HIGHEST + 1 }; // ---------------------------------------------------------------------------- @@ -123,6 +123,9 @@ IMPLEMENT_APP(MyApp) // 'Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + wxImage::AddHandler(new wxPNGHandler); // create the main application window