X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..c48bdb0c28dd146b89bcbfeda43db1b48d4a343b:/src/html/winpars.cpp?ds=inline diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index cb07b1d0be..7f3fc64e50 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -552,6 +552,13 @@ void wxHtmlWinParser::SetFontSize(int s) } +void wxHtmlWinParser::SetDC(wxDC *dc, double pixel_scale, double font_scale) +{ + m_DC = dc; + m_PixelScale = pixel_scale; + m_FontScale = font_scale; +} + wxFont* wxHtmlWinParser::CreateCurrentFont() { @@ -582,7 +589,7 @@ wxFont* wxHtmlWinParser::CreateCurrentFont() { *faceptr = face; *fontptr = new wxFont( - (int) (m_FontsSizes[fs] * m_PixelScale), + (int) (m_FontsSizes[fs] * m_FontScale), ff ? wxMODERN : wxSWISS, fi ? wxITALIC : wxNORMAL, fb ? wxBOLD : wxNORMAL,