X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e306597309a120f2ae91385c731a5cb2722c52aa..1987af7e9f5685198b0c19e2326eebf7e56b7834:/samples/png/pngdemo.cpp diff --git a/samples/png/pngdemo.cpp b/samples/png/pngdemo.cpp index da50f96d5d..c3ef818509 100644 --- a/samples/png/pngdemo.cpp +++ b/samples/png/pngdemo.cpp @@ -21,8 +21,10 @@ #endif #ifdef __WXMSW__ -#include -// #include +#include "wx/pnghand.h" +#endif +#ifdef __WXGTK__ +#include "wx/image.h" #endif #include "pngdemo.h" @@ -40,8 +42,9 @@ bool MyApp::OnInit(void) { #ifdef __WXMSW__ wxBitmap::AddHandler(new wxPNGFileHandler); -// wxBitmap::AddHandler(new wxXPMFileHandler); -// wxBitmap::AddHandler(new wxXPMDataHandler); +#endif +#ifdef __WXGTK__ + wxImage::AddHandler(new wxPNGHandler); #endif // Create the main frame window