]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/rgncmn.cpp
missing headers for !USE_PCH compilation
[wxWidgets.git] / src / common / rgncmn.cpp
index c4fb8fae0b5be9258dca8753724553140af8e423..41b273e76c123fcafd185384c16654c831e0f6c9 100644 (file)
@@ -23,7 +23,9 @@
 
 #include "wx/region.h"
 #include "wx/bitmap.h"
+#if wxUSE_IMAGE
 #include "wx/image.h"
+#endif
 #include "wx/dcmemory.h"
 
 
@@ -52,6 +54,7 @@ bool wxRegion::Union(const wxBitmap& bmp,
                      const wxColour& transColour,
                      int   tolerance)
 {
+#if wxUSE_IMAGE
     unsigned char loR, loG, loB;
     unsigned char hiR, hiG, hiB;
 
@@ -114,6 +117,10 @@ bool wxRegion::Union(const wxBitmap& bmp,
     }
 
     return TRUE;
+#else
+    // No wxImage support
+    return FALSE;
+#endif
 }
 
 //---------------------------------------------------------------------------