- m_selected = bitmap;
- if (m_selected.Ok())
- {
- m_window = m_selected.GetPixmap();
- SetUpDC();
- }
- else
- {
- m_ok = FALSE;
- m_window = NULL;
- };
-};
-
-void wxMemoryDC::GetSize( int *width, int *height )
+ wxBrush brush(brushOrig);
+
+ if ( m_selected.Ok() &&
+ m_selected.GetBitmap() &&
+ (brush != *wxTRANSPARENT_BRUSH) )
+ {
+ brush.SetColour( brush.GetColour() == *wxWHITE ? *wxBLACK : *wxWHITE );
+ }
+
+ wxWindowDC::SetBackground( brush );
+}
+
+void wxMemoryDC::SetTextForeground( const wxColour& col )