X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79144b8a47e93d03d136fd39cd730060930dec77..11dfaa5f1dab5a787dc711c8d9881280509a50ae:/samples/png/pngdemo.cpp diff --git a/samples/png/pngdemo.cpp b/samples/png/pngdemo.cpp index c3ef818509..473340a6e9 100644 --- a/samples/png/pngdemo.cpp +++ b/samples/png/pngdemo.cpp @@ -20,12 +20,7 @@ #pragma hdrstop #endif -#ifdef __WXMSW__ -#include "wx/pnghand.h" -#endif -#ifdef __WXGTK__ #include "wx/image.h" -#endif #include "pngdemo.h" @@ -40,12 +35,7 @@ MyApp::MyApp() bool MyApp::OnInit(void) { -#ifdef __WXMSW__ - wxBitmap::AddHandler(new wxPNGFileHandler); -#endif -#ifdef __WXGTK__ wxImage::AddHandler(new wxPNGHandler); -#endif // Create the main frame window frame = new MyFrame((wxFrame *) NULL, "wxPNGBitmap Demo", wxPoint(0, 0), wxSize(300, 300));