X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b50d93d1dae385443f0ca4a57736cb5a57a3e7fe..b871bb951a69addc7799f211f7c597cffbe5a44c:/samples/render/render.cpp diff --git a/samples/render/render.cpp b/samples/render/render.cpp index 7ac3ecd5bd..7cb63278be 100644 --- a/samples/render/render.cpp +++ b/samples/render/render.cpp @@ -35,6 +35,7 @@ #include "wx/log.h" #include "wx/msgdlg.h" #include "wx/icon.h" + #include "wx/image.h" #endif #include "wx/apptrait.h" @@ -297,6 +298,13 @@ bool MyApp::OnInit() if ( !wxApp::OnInit() ) return false; +#ifdef __WXOSX__ + // currently the images used by DrawTitleBarBitmap() are hard coded as PNG + // images inside the library itself so we need to enable PNG support to use + // this function + wxImage::AddHandler(new wxPNGHandler); +#endif // OS X + // create the main application window new MyFrame;