From 941834fd0e8f6f32e1d6e98e0c4fa43ecb5d8e84 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 10 Aug 2015 09:08:41 -0700 Subject: [PATCH] enable wxGraphicsContext offset for wxMemoryDC, see #17091 --- src/osx/core/dcmemory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osx/core/dcmemory.cpp b/src/osx/core/dcmemory.cpp index ea4b4c6761..1adf3789cc 100644 --- a/src/osx/core/dcmemory.cpp +++ b/src/osx/core/dcmemory.cpp @@ -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) ; }