X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21a77f6e5008e7c6e15fc5615c917f13793e6136..abefd7eebac853dfc6a9b8939fa6fb8bc5dafcf6:/src/common/imagfill.cpp diff --git a/src/common/imagfill.cpp b/src/common/imagfill.cpp index be9c7d69e5..d337301e7b 100644 --- a/src/common/imagfill.cpp +++ b/src/common/imagfill.cpp @@ -1,9 +1,9 @@ ///////////////////////////////////////////////////////////////////////////// // Name: imagfill.cpp // Purpose: FloodFill for wxImage -// Author: +// Author: // RCS-ID: $Id$ -// Copyright: +// Copyright: // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -17,13 +17,13 @@ #pragma hdrstop #endif -#include "wx/defs.h" - #if wxUSE_IMAGE #include "wx/image.h" -#include "wx/brush.h" -#include "wx/pen.h" + +#ifndef WX_PRECOMP + #include "wx/brush.h" +#endif // DoFloodFill // Fills with the colour extracted from fillBrush, starting at x,y until either @@ -32,7 +32,7 @@ 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);