X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..c25f373e2b49e6d97c45d3f73da7edd0021ab2b3:/src/common/rgncmn.cpp diff --git a/src/common/rgncmn.cpp b/src/common/rgncmn.cpp index c4fb8fae0b..41b273e76c 100644 --- a/src/common/rgncmn.cpp +++ b/src/common/rgncmn.cpp @@ -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 } //---------------------------------------------------------------------------