static void LINKAGEMODE
wxImageFloodFill(wxImage *image,
wxCoord x, wxCoord y, const wxBrush & fillBrush,
- const wxColour& testColour, int style,
- int WXUNUSED(LogicalFunction))
+ const wxColour& testColour, int style)
{
/* A diamond flood-fill using a circular queue system.
Each pixel surrounding the current pixel is added to
bool wxDoFloodFill(wxDC *dc, wxCoord x, wxCoord y,
- const wxColour& col, int style)
+ const wxColour& col, wxFloodFillStyle style)
{
- if (dc->GetBrush().GetStyle() == wxBRUSHSTYLE_TRANSPARENT)
+ if (dc->GetBrush().IsTransparent())
return true;
int height = 0;
memdc.SelectObject(wxNullBitmap);
wxImage image = bitmap.ConvertToImage();
- wxImageFloodFill(&image, x_dev, y_dev, dc->GetBrush(), col, style,
- dc->GetLogicalFunction());
+ wxImageFloodFill(&image, x_dev, y_dev, dc->GetBrush(), col, style);
bitmap = wxBitmap(image);
memdc.SelectObject(bitmap);
dc->Blit(x0_log, y0_log, w_log, h_log, &memdc, 0, 0);