Added new wxGraphicsContext:Create( wxPrinterDC ) instead of wxDC:CreateGraphicsContext
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -31,11 +31,6 @@
|
||||
|
||||
#include <gdk/gdkx.h>
|
||||
|
||||
#if wxUSE_GRAPHICS_CONTEXT
|
||||
#include "wx/graphics.h"
|
||||
#endif
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// local defines
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -370,14 +365,6 @@ wxWindowDCImpl::~wxWindowDCImpl()
|
||||
pango_font_description_free( m_fontdesc );
|
||||
}
|
||||
|
||||
#if wxUSE_GRAPHICS_CONTEXT
|
||||
wxGraphicsContext* wxWindowDCImpl::CreateGraphicsContext()
|
||||
{
|
||||
wxWindowDC *windowdc = (wxWindowDC*) GetOwner();
|
||||
return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext( *windowdc );
|
||||
}
|
||||
#endif
|
||||
|
||||
void wxWindowDCImpl::SetUpDC( bool isMemDC )
|
||||
{
|
||||
m_ok = true;
|
||||
|
Reference in New Issue
Block a user