]> git.saurik.com Git - wxWidgets.git/commitdiff
getting the wxWindow* on GTK
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 10 Oct 2006 12:43:58 +0000 (12:43 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 10 Oct 2006 12:43:58 +0000 (12:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcbase.cpp

index 3d64c02a4d6fa9b18b58896ed10bf01fada57163..56ed0286d08db82254b65a28e08aad125cc0d4fb 100644 (file)
@@ -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 );