X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c5d62917d14278d8925a73d754965713e11e32f..e960c20e389061c0db09e03fdaf9ffe3a418779b:/samples/display/display.cpp diff --git a/samples/display/display.cpp b/samples/display/display.cpp index 7ee089971d..683cb0375e 100644 --- a/samples/display/display.cpp +++ b/samples/display/display.cpp @@ -167,6 +167,9 @@ IMPLEMENT_APP(MyApp) // 'Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + #ifdef __WXMSW__ if ( argc == 2 && !wxStricmp(argv[1], _T("/dx")) ) {