]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/opengl/penguin/penguin.cpp
use const for xpm icons
[wxWidgets.git] / samples / opengl / penguin / penguin.cpp
index 8f06fa3c272694fbb9619316609716c57cbc8224..9ad96d9e8f45ea41ba644b207488720b9644556e 100644 (file)
@@ -40,6 +40,9 @@
 // `Main program' equivalent, creating windows and returning main app frame
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // Create the main frame window
     MyFrame *frame = new MyFrame(NULL, wxT("wxWidgets Penguin Sample"),
         wxDefaultPosition, wxDefaultSize);