X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b44ffc0e77a8db603b3aba597e4c4df2e2e518f..55ca41b1ea89c0e6ccf84973091bea8b936eee06:/src/msw/dcclient.cpp diff --git a/src/msw/dcclient.cpp b/src/msw/dcclient.cpp index b965c68430..1e667aa704 100644 --- a/src/msw/dcclient.cpp +++ b/src/msw/dcclient.cpp @@ -33,10 +33,6 @@ #include "wx/window.h" #endif -#if wxUSE_GRAPHICS_CONTEXT -#include "wx/graphics.h" -#endif - #include "wx/msw/private.h" // ---------------------------------------------------------------------------- @@ -113,23 +109,12 @@ void wxWindowDCImpl::InitDC() // DrawText() to OPAQUE as required, otherwise always TRANSPARENT, ::SetBkMode(GetHdc(), TRANSPARENT); - // default bg colour is pne of the window - 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 InitializePalette(); #endif } -#if wxUSE_GRAPHICS_CONTEXT -wxGraphicsContext* wxWindowDCImpl::CreateGraphicsContext() -{ - wxWindowDC *windowdc = (wxWindowDC*) GetOwner(); - return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext( *windowdc ); -} -#endif - void wxWindowDCImpl::DoGetSize(int *width, int *height) const { wxCHECK_RET( m_window, _T("wxWindowDCImpl without a window?") );