X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7042ce73b824b32d50778c79688a455c6fe89b6..f5406730ffdde05e710a68367ac45c15a11c00bc:/src/common/dcgraph.cpp?ds=sidebyside diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index fb05146587..3b49dce031 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -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); } }