]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/rgncmn.cpp
fixed warning in non-DLL build
[wxWidgets.git] / src / common / rgncmn.cpp
index c794b59ab9134843232cb49884bb34ed8360e687..c192366f293ae8afeeb84096da81819d65c42bc0 100644 (file)
@@ -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;