diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 4f78084b83..94f23dfa7c 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -1116,6 +1116,7 @@ void wxHtmlWindow::OnPaint(wxPaintEvent& WXUNUSED(event)) dc = &dcm; } + dc->GetImpl()->SetWindow(this); PrepareDC(*dc); // Erase the background: for compatibility, we must generate the event to diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index 830146cde0..a3f06e1d64 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -619,10 +619,6 @@ wxFont* wxHtmlWinParser::CreateCurrentFont() *encptr = m_OutputEnc; #endif } -#ifdef __WXMSW__ - if ( m_windowInterface && m_windowInterface->GetHTMLWindow() ) - (*fontptr)->WXAdjustToPPI(m_windowInterface->GetHTMLWindow()->GetDPI()); -#endif m_DC->SetFont(**fontptr); return (*fontptr); }