From: Stefan Csomor Date: Tue, 10 Oct 2006 12:43:58 +0000 (+0000) Subject: getting the wxWindow* on GTK X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b954afc925448455b32dda53bc2c274bac6d2582 getting the wxWindow* on GTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index 3d64c02a4d..56ed0286d0 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -1317,8 +1317,11 @@ bool wxOverlayImpl::IsOk() void wxOverlayImpl::Init( wxWindowDC* dc, int x , int y , int width , int height ) { +#if defined(__WXGTK__) + m_window = dc->m_owner; +#else m_window = dc->GetWindow(); - +#endif wxMemoryDC dcMem ; m_bmpSaved.Create( width, height ); dcMem.SelectObject( m_bmpSaved );