]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcmemory.cpp
use IMPLEMENT_APP_CONSOLE and not IMPLEMENT_APP for console apps
[wxWidgets.git] / src / gtk / dcmemory.cpp
index d77d307dc5c3c76da744cbfb1ecd0bc61937dc94..3c22ca1fc19b2e57293b8c105de6fdb9576d6c2a 100644 (file)
 #include <gdk/gdk.h>
 #include <gtk/gtk.h>
 
-#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();