X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b44ffc0e77a8db603b3aba597e4c4df2e2e518f..b85b06e13d22e7fc1604ec1a49caa1227a1b3d36:/src/gtk/dcmemory.cpp diff --git a/src/gtk/dcmemory.cpp b/src/gtk/dcmemory.cpp index d77d307dc5..e1ce88efa2 100644 --- a/src/gtk/dcmemory.cpp +++ b/src/gtk/dcmemory.cpp @@ -16,10 +16,6 @@ #include #include -#if wxUSE_GRAPHICS_CONTEXT -#include "wx/graphics.h" -#endif - //----------------------------------------------------------------------------- // wxMemoryDCImpl //----------------------------------------------------------------------------- @@ -64,14 +60,6 @@ void wxMemoryDCImpl::Init() m_fontdesc = pango_font_description_copy( pango_context_get_font_description( m_context ) ); } -#if wxUSE_GRAPHICS_CONTEXT -wxGraphicsContext* wxMemoryDCImpl::CreateGraphicsContext() -{ - wxMemoryDC *memdc = (wxMemoryDC*) GetOwner(); - return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext( *memdc ); -} -#endif - void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap ) { Destroy(); @@ -88,7 +76,7 @@ void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap ) else { m_ok = false; - m_gdkwindow = (GdkWindow *) NULL; + m_gdkwindow = NULL; } }