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:
parent
d8416992be
commit
ab3a145407
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user