Compilation with new dc code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2007-09-24 09:42:22 +00:00
parent d8416992be
commit ab3a145407

View File

@ -147,7 +147,14 @@ bool wxOverlayImpl::IsOk()
void wxOverlayImpl::Init( wxWindowDC* dc, int x , int y , int width , int height ) void wxOverlayImpl::Init( wxWindowDC* dc, int x , int y , int width , int height )
{ {
#if defined(__WXGTK__) #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; m_window = dc->m_owningWindow;
#endif
#else #else
#if defined (__WXMSW__) #if defined (__WXMSW__)
m_window = dc->GetWindow(); m_window = dc->GetWindow();