enable wxGraphicsContext offset for wxMemoryDC, see #17091

This commit is contained in:
Paul Cornett 2015-08-10 09:08:41 -07:00
parent 4623c5ad9c
commit 941834fd0e

View File

@ -86,6 +86,8 @@ void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap )
CGContextSetFillColorSpace( bmCtx, genericColorSpace );
CGContextSetStrokeColorSpace( bmCtx, genericColorSpace );
SetGraphicsContext( wxGraphicsContext::CreateFromNative( bmCtx ) );
if (m_graphicContext)
m_graphicContext->EnableOffset(true);
}
m_ok = (m_graphicContext != NULL) ;
}