compilation fix for wxGTK1

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-26 12:17:01 +00:00
parent bff023f172
commit 5abbb704ba

View File

@@ -146,7 +146,7 @@ bool wxOverlayImpl::IsOk()
void wxOverlayImpl::Init( wxWindowDC* dc, int x , int y , int width , int height )
{
#if defined(__WXGTK__)
#if defined(__WXGTK20__)
#if wxUSE_NEW_DC
wxImplDC *impl = dc->GetImpl();
wxGTKWindowImplDC *gtk_impl = wxDynamicCast( impl, wxGTKWindowImplDC );
@@ -155,11 +155,10 @@ void wxOverlayImpl::Init( wxWindowDC* dc, int x , int y , int width , int height
#else
m_window = dc->m_owningWindow;
#endif
#else
#if defined (__WXMSW__)
#elif defined(__WXGTK__)
m_window = dc->m_owner;
#elif defined(__WXMSW__)
m_window = dc->GetWindow();
#endif // __WXMSW__
#endif
wxMemoryDC dcMem ;
m_bmpSaved.Create( width, height );