// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "rgncmn.h"
#endif
#include "wx/region.h"
#include "wx/bitmap.h"
+#if wxUSE_IMAGE
#include "wx/image.h"
+#endif
#include "wx/dcmemory.h"
wxBitmap bmp(box.GetRight(), box.GetBottom());
wxMemoryDC dc;
dc.SelectObject(bmp);
- dc.SetBackground(*wxWHITE_BRUSH);
+ dc.SetBackground(*wxBLACK_BRUSH);
dc.Clear();
dc.SetClippingRegion(*this);
- dc.SetBackground(*wxBLACK_BRUSH);
+ dc.SetBackground(*wxWHITE_BRUSH);
dc.Clear();
dc.SelectObject(wxNullBitmap);
return bmp;
//---------------------------------------------------------------------------
+#if wxUSE_IMAGE
bool wxRegion::Union(const wxBitmap& bmp,
const wxColour& transColour,
int tolerance)
+#else
+bool wxRegion::Union(const wxBitmap& WXUNUSED(bmp),
+ const wxColour& WXUNUSED(transColour),
+ int WXUNUSED(tolerance))
+#endif
{
+#if wxUSE_IMAGE
unsigned char loR, loG, loB;
unsigned char hiR, hiG, hiB;
}
}
- return TRUE;
+ return true;
+#else
+ // No wxImage support
+ return false;
+#endif
}
//---------------------------------------------------------------------------