]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
added mingw32 host platform to configure.in, added WINVER define for windows
[wxWidgets.git] / src / gtk / dcclient.cpp
index 93f34e9fe7f078dede0cd09dce8a38dfe79bf600..eadd93d70cf5d2d7fbaff768e1b5077f145c3ed8 100644 (file)
@@ -110,6 +110,7 @@ wxWindowDC::wxWindowDC( wxWindow *window )
     m_cmap = (GdkColormap *) NULL;
     m_owner = (wxWindow *)NULL;
     m_isMemDC = FALSE;
+    m_font = window->GetFont();
   
     wxASSERT_MSG( window, _T("DC needs a window") );
     
@@ -1172,9 +1173,15 @@ void wxWindowDC::SetUpDC()
     m_brush = wxNullBrush;
     SetBrush( tmp_brush );
     
+/*
     tmp_brush = m_backgroundBrush;
     m_backgroundBrush = wxNullBrush;
     SetBackground( tmp_brush );
+*/
+    tmp_brush = m_backgroundBrush;
+    m_backgroundBrush = wxNullBrush;
+    SetBackground( *wxWHITE_BRUSH );
+    m_backgroundBrush = tmp_brush;
   
     if (!hatch_bitmap) 
     {