X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1699cd397f7db0193491c8498608578b43db12b..f94dd12dc18afd8518a88e9edac75f6dff907c9c:/src/gtk1/dcclient.cpp diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index d903e9311c..929d71bfb9 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -426,11 +426,11 @@ void wxWindowDC::DoFloodFill( wxCoord x, wxCoord y, memdc.Blit(0, 0, width, height, (wxDC*) this, 0, 0); memdc.SelectObject(wxNullBitmap); - wxImage image(bitmap); + wxImage image = bitmap.ConvertToImage(); image.DoFloodFill (x,y, GetBrush(), col, style, GetLogicalFunction()); bitmap = wxBitmap(image); memdc.SelectObject(bitmap); - this->Blit(0, 0, width, height, &memdc, 0, 0); + Blit(0, 0, width, height, &memdc, 0, 0); memdc.SelectObject(wxNullBitmap); }