-#if !(defined __WXGTK__) && !(defined __WXX11__) && !(defined __WXMOTIF__) && !(defined __WXMGL__)
- // not implemented in wxGTK or wxMOTIF or wxX11 :-(
- dc.FloodFill(0, 0, wxColour(255, 0, 0));
-#endif //
+
+ //flood fill using brush, starting at 1,1 and replacing whatever colour we find there
+ dc.SetBrush(wxBrush(wxColour(128,128,0), wxSOLID));
+ wxColour tmpColour ;
+ dc.GetPixel(1,1, &tmpColour);
+ dc.FloodFill(1,1, tmpColour, wxFLOOD_SURFACE);