From ab3a145407008f07e065f0b72bae9b8f88aeaf65 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 24 Sep 2007 09:42:22 +0000 Subject: [PATCH] Compilation with new dc code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/overlaycmn.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common/overlaycmn.cpp b/src/common/overlaycmn.cpp index acef13cc77..b3e0304101 100644 --- a/src/common/overlaycmn.cpp +++ b/src/common/overlaycmn.cpp @@ -147,7 +147,14 @@ bool wxOverlayImpl::IsOk() void wxOverlayImpl::Init( wxWindowDC* dc, int x , int y , int width , int height ) { #if defined(__WXGTK__) +#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 #else #if defined (__WXMSW__) m_window = dc->GetWindow();