More fixes for !wxUSE_TIMER, !wxUSE_IMAGE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-08-11 12:47:16 +00:00
parent 7da6ab6e2e
commit 4b3163294c
3 changed files with 28 additions and 0 deletions

View 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
}
//---------------------------------------------------------------------------