]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagall.cpp
removed previously unused and now uncompilable code from wxMGL
[wxWidgets.git] / src / common / imagall.cpp
index 4358ff45b59952c5c0010c3fec4f22fa75c059d9..06435d7ea76166e6d89462ad73d1e16fe6261310 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        imagpnm.cpp
+// Name:        imagall.cpp
 // Purpose:     wxImage access all handler
 // Author:      Sylvain Bougnoux
 // RCS-ID:      $Id$
@@ -25,6 +25,8 @@
 
 #include "wx/image.h"
 
+#if wxUSE_IMAGE
+
 //-----------------------------------------------------------------------------
 // This function allows dynamic access to all image handlers compile within
 // the library. This function should be in a separate file as some compilers
@@ -38,6 +40,9 @@ void wxInitAllImageHandlers()
 #if wxUSE_LIBJPEG
   wxImage::AddHandler( new wxJPEGHandler );
 #endif
+#if wxUSE_LIBTIFF
+  wxImage::AddHandler( new wxTIFFHandler );
+#endif
 #if wxUSE_GIF
   wxImage::AddHandler( new wxGIFHandler );
 #endif
@@ -47,4 +52,10 @@ void wxInitAllImageHandlers()
 #if wxUSE_PCX
   wxImage::AddHandler( new wxPCXHandler );
 #endif
+#if wxUSE_XPM
+  wxImage::AddHandler( new wxXPMHandler );
+#endif
+  wxImage::AddHandler( new wxICOHandler );
 }
+
+#endif // wxUSE_IMAGE