enable wxGraphicsContext offset for wxMemoryDC, see #17091
This commit is contained in:
parent
4623c5ad9c
commit
941834fd0e
@ -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) ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user