Patch #1769242: Check for wxUSE_GRAPHICS_CONTEXT in renderer.cpp

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-08-07 19:12:09 +00:00
parent 72d5e4361f
commit 931e5c417c

View File

@@ -121,9 +121,11 @@ GdkWindow* wxGetGdkWindowForDC(wxWindow* win, wxDC& dc)
// So, to work around this, we use GetGDKWindow whenever possible
// and use bin_window for wxGCDC.
GdkWindow* gdk_window = NULL;
#if wxUSE_GRAPHICS_CONTEXT
if ( dc.IsKindOf( CLASSINFO(wxGCDC) ) )
gdk_window = GTK_PIZZA(win->m_wxwindow)->bin_window;
else
#endif
gdk_window = dc.GetGDKWindow();
wxASSERT_MSG( gdk_window,
wxT("cannot use wxRendererNative on wxDC of this type") );