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:
@@ -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") );
|
||||
|
Reference in New Issue
Block a user