X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f0875501313903140a41dca0ba6ee2d85ed0536c..0bbe61b8c18a1795189f0cf73cc61c14a0fb846d:/src/msw/dcclient.cpp diff --git a/src/msw/dcclient.cpp b/src/msw/dcclient.cpp index 1602140de7..e97fe01af2 100644 --- a/src/msw/dcclient.cpp +++ b/src/msw/dcclient.cpp @@ -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 @@ -169,7 +169,8 @@ void wxClientDCImpl::InitDC() } // clip the DC to avoid overwriting the non client area - SetClippingRegion(wxPoint(0,0), m_window->GetClientSize()); + wxSize size = m_window->GetClientSize(); + DoSetClippingRegion(0, 0, size.x, size.y); #endif // __WXUNIVERSAL__ || __WXWINCE__ }