/////////////////////////////////////////////////////////////////////////////
// Name: imagfill.cpp
// Purpose: FloodFill for wxImage
-// Author:
+// Author:
// RCS-ID: $Id$
-// Copyright:
+// Copyright:
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#pragma hdrstop
#endif
-#include "wx/defs.h"
-
#if wxUSE_IMAGE
#include "wx/image.h"
+#ifndef WX_PRECOMP
+ #include "wx/brush.h"
+#endif
+
// DoFloodFill
// Fills with the colour extracted from fillBrush, starting at x,y until either
// a color different from the start pixel is reached (wxFLOOD_SURFACE)
bool wxImage::MatchPixel(int x, int y, int w, int h, const wxColour & c)
{
- if ((x<0)||(x>=w)||(y<0)||(y>=h)) return false;
+ if ((x<0)||(x>=w)||(y<0)||(y>=h)) return FALSE;
unsigned char r = GetRed(x,y);
unsigned char g = GetGreen(x,y);