X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf02a7f9761ce9c0a1279ae958a0e5d53f603e15..c753eb9269d1e6c99b80a2d782ce49d9864ac1da:/src/common/dcgraph.cpp diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 9e5e2b81fd..481f256d2a 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -450,6 +450,12 @@ void wxGCDCImpl::SetFont( const wxFont &font ) if ( f.IsOk() ) f.SetPointSize( /*LogicalToDeviceYRel*/(font.GetPointSize())); m_graphicContext->SetFont( f, m_textForegroundColour ); +#if defined(__WXGTK__) || defined(__WXOSX__) + if ( m_font.GetNoAntiAliasing() ) + { + m_graphicContext->SetAntialiasMode(wxANTIALIAS_NONE); + } +#endif } }