]> git.saurik.com Git - wxWidgets.git/commitdiff
uses wxInitAllImageHandlers
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Jan 2000 23:05:39 +0000 (23:05 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Jan 2000 23:05:39 +0000 (23:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/html/help/help.cpp

index a150939d3fe02697303e4a4bf7e38af6258c9894..b437a9b3e0a1c0e8c577e70bec4f44c1f2ecf6c1 100644 (file)
    // `Main program' equivalent: the program execution "starts" here
    bool MyApp::OnInit()
    {
-       #if wxUSE_LIBPNG
-        wxImage::AddHandler(new wxPNGHandler);
-       #endif
-       #if wxUSE_LIBJPEG
-        wxImage::AddHandler(new wxJPEGHandler);
-       #endif
+      wxInitAllImageHandlers();
 
       SetVendorName("wxWindows");
       SetAppName("wxHTMLHelp");