X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/004f4002877acc09d8bc213602f55b22bdbae345..e960c20e389061c0db09e03fdaf9ffe3a418779b:/samples/splash/splash.cpp diff --git a/samples/splash/splash.cpp b/samples/splash/splash.cpp index 1b72d0be68..644caf2d76 100644 --- a/samples/splash/splash.cpp +++ b/samples/splash/splash.cpp @@ -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