]> git.saurik.com Git - wxWidgets.git/commitdiff
Cater for wxUSE_IMAGE=0
authorJulian Smart <julian@anthemion.co.uk>
Mon, 11 Aug 2003 10:59:07 +0000 (10:59 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 11 Aug 2003 10:59:07 +0000 (10:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/iconbndl.cpp
src/common/quantize.cpp

index 661000a0aeae4dba5c113d7b4766878e3a7dba10..0661a1e7db4bd231e68dd334a8680bd575cdc5d7 100644 (file)
@@ -27,7 +27,7 @@
     #include "wx/bitmap.h"
 #endif
 
-#ifndef _WX_IMAGE_H_
+#if wxUSE_IMAGE && !defined(_WX_IMAGE_H_)
     #include "wx/image.h"
 #endif
 
@@ -56,6 +56,7 @@ void wxIconBundle::DeleteIcons()
 
 void wxIconBundle::AddIcon( const wxString& file, long type )
 {
+#if wxUSE_IMAGE
     size_t count = wxImage::GetImageCount( file, type );
     size_t i;
     wxImage image;
@@ -74,6 +75,7 @@ void wxIconBundle::AddIcon( const wxString& file, long type )
         AddIcon( *tmp );
         delete tmp;
     }
+#endif
 }
 
 const wxIcon& wxIconBundle::GetIcon( const wxSize& size ) const
index b792d1483389a2f07780de9d01ed1da419c9b066..736619734c3a67de5df83ab9619f6020e165af53 100644 (file)
@@ -45,6 +45,8 @@
     #include "wx/palette.h"
 #endif
 
+#if wxUSE_IMAGE
+
 #include "wx/image.h"
 #include "wx/quantize.h"
 
@@ -1655,3 +1657,6 @@ bool wxQuantize::Quantize(const wxImage& src,
     return TRUE;
 }
 
+#endif
+    // wxUSE_IMAGE
+