]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcclient.cpp
fix crash which happened if you called SetAttr(NULL) followed by SetAttr(attr) (...
[wxWidgets.git] / src / msw / dcclient.cpp
index 3eff38d0d4bbd01b181d52090bf2c6fb58537757..e97fe01af2b2a691b9c822bcd73d0db792bc2bb2 100644 (file)
@@ -110,7 +110,7 @@ void wxWindowDCImpl::InitDC()
     ::SetBkMode(GetHdc(), TRANSPARENT);
 
     // default bg colour is pne of the window
-    SetBackground(wxBrush(m_window->GetBackgroundColour(), wxSOLID));
+    SetBackground(wxBrush(m_window->GetBackgroundColour(), wxBRUSHSTYLE_SOLID));
 
     // since we are a window dc we need to grab the palette from the window
 #if wxUSE_PALETTE