X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4b764db3795a5f202f379ee3b0314b2de91c15fa..f95b06a67c05b1ee51a2ac73a119647a1e6ba1d0:/samples/opengl/penguin/penguin.cpp diff --git a/samples/opengl/penguin/penguin.cpp b/samples/opengl/penguin/penguin.cpp index f753b518bc..9ad96d9e8f 100644 --- a/samples/opengl/penguin/penguin.cpp +++ b/samples/opengl/penguin/penguin.cpp @@ -25,14 +25,10 @@ #endif #include "penguin.h" -#ifdef __WXMAC__ -# ifdef __DARWIN__ -# include -# else -# include -# endif +#ifdef __DARWIN__ + #include #else -# include + #include #endif #include "../../sample.xpm" @@ -44,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); @@ -108,7 +107,7 @@ void MyFrame::OnMenuFileOpen( wxCommandEvent& WXUNUSED(event) ) #else wxT("DXF Drawing (*.dxf)|*.dxf)|All files (*.*)|*.*"), #endif - wxOPEN); + wxFD_OPEN); if (!filename.IsEmpty()) { m_canvas->LoadDXF(filename);