]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcgraph.cpp
implement new wxBG_STYLE_XXX semantics for wxMSW too
[wxWidgets.git] / src / common / dcgraph.cpp
index 9e5e2b81fdb9ca010975a06536fe490038278ec4..481f256d2a6ff1cde6068567f41298b03cc35fab 100644 (file)
@@ -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
     }
 }