]> git.saurik.com Git - wxWidgets.git/commitdiff
supporting AA font flags on wxGCDC, fixes #10579
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 13 Mar 2009 17:53:58 +0000 (17:53 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 13 Mar 2009 17:53:58 +0000 (17:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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 ( 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
     }
 }
 
     }
 }