X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5abbb704ba8781772d2fd26b20eaf079d05436ea..05dff6b0756ec639d4d05ed88ef47e57a8dbbae8:/src/common/overlaycmn.cpp diff --git a/src/common/overlaycmn.cpp b/src/common/overlaycmn.cpp index 0551e88cc7..35b222e49d 100644 --- a/src/common/overlaycmn.cpp +++ b/src/common/overlaycmn.cpp @@ -129,9 +129,7 @@ void wxDCOverlay::Clear() wxOverlayImpl::wxOverlayImpl() { -#if defined(__WXGTK__) || defined(__WXMSW__) m_window = NULL ; -#endif m_x = m_y = m_width = m_height = 0 ; } @@ -146,20 +144,7 @@ bool wxOverlayImpl::IsOk() void wxOverlayImpl::Init( wxWindowDC* dc, int x , int y , int width , int height ) { -#if defined(__WXGTK20__) -#if wxUSE_NEW_DC - wxImplDC *impl = dc->GetImpl(); - wxGTKWindowImplDC *gtk_impl = wxDynamicCast( impl, wxGTKWindowImplDC ); - if (gtk_impl) - m_window = gtk_impl->m_owningWindow; -#else - m_window = dc->m_owningWindow; -#endif -#elif defined(__WXGTK__) - m_window = dc->m_owner; -#elif defined(__WXMSW__) m_window = dc->GetWindow(); -#endif wxMemoryDC dcMem ; m_bmpSaved.Create( width, height ); dcMem.SelectObject( m_bmpSaved );