]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcgraph.cpp
wxOSX/Carbon compilation fix after the changes of r72207.
[wxWidgets.git] / src / common / dcgraph.cpp
index fb05146587538f5fc9f9d20dd1ebb9b43252bea9..3b49dce031cac84073b59f4d6c920eba148ad99b 100644 (file)
@@ -205,6 +205,13 @@ wxGCDCImpl::wxGCDCImpl(wxDC *owner, const wxEnhMetaFileDC& dc)
 }
 #endif
 
+wxGCDCImpl::wxGCDCImpl(wxDC* owner, int)
+   : wxDCImpl(owner)
+{
+    // derived class will set a context
+    Init(NULL);
+}
+
 void wxGCDCImpl::Init(wxGraphicsContext* ctx)
 {
     m_ok = false;
@@ -441,10 +448,7 @@ void wxGCDCImpl::SetFont( const wxFont &font )
     m_font = font;
     if ( m_graphicContext )
     {
-        wxFont f = font;
-        if ( f.IsOk() )
-            f.SetPointSize( /*LogicalToDeviceYRel*/(font.GetPointSize()));
-        m_graphicContext->SetFont( f, m_textForegroundColour );
+        m_graphicContext->SetFont(font, m_textForegroundColour);
     }
 }