X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1542ea396a625766c59d683adbb1d613c1344d50..a095505c96a4ffbbfa559d9239bc8a6f75698da1:/src/common/rgncmn.cpp diff --git a/src/common/rgncmn.cpp b/src/common/rgncmn.cpp index c794b59ab9..c192366f29 100644 --- a/src/common/rgncmn.cpp +++ b/src/common/rgncmn.cpp @@ -23,6 +23,7 @@ #include "wx/region.h" #include "wx/bitmap.h" +#include "wx/image.h" #include "wx/dcmemory.h" @@ -36,10 +37,10 @@ wxBitmap wxRegion::ConvertToBitmap() const wxBitmap bmp(box.GetRight(), box.GetBottom()); wxMemoryDC dc; dc.SelectObject(bmp); - dc.SetBackground(*wxWHITE_BRUSH); + dc.SetBackground(*wxBLACK_BRUSH); dc.Clear(); dc.SetClippingRegion(*this); - dc.SetBackground(*wxBLACK_BRUSH); + dc.SetBackground(*wxWHITE_BRUSH); dc.Clear(); dc.SelectObject(wxNullBitmap); return bmp;