Avoid wxGraphicsContext offsetting on HiDPI displays

For a typical scale factor of 2, there won't be any odd-width lines,
and for any factor greater than 1.0, it won't be doing what was intended,
so just don't do it. See #17375
This commit is contained in:
Paul Cornett
2016-02-22 10:25:16 -08:00
parent 6674ca57da
commit 371ee79f88
5 changed files with 14 additions and 14 deletions

View File

@@ -87,7 +87,7 @@ void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap )
CGContextSetStrokeColorSpace( bmCtx, genericColorSpace );
SetGraphicsContext( wxGraphicsContext::CreateFromNative( bmCtx ) );
if (m_graphicContext)
m_graphicContext->EnableOffset(true);
m_graphicContext->EnableOffset(m_contentScaleFactor <= 1);
}
m_ok = (m_graphicContext != NULL) ;
}