]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/winpars.cpp
remove streams tests: they're very basic and already-existing CppUnit stream tests...
[wxWidgets.git] / src / html / winpars.cpp
index cb07b1d0be345bc19853fcf03ea13f501a2f78f0..7f3fc64e50cba22ea69c2658441be164a85c459c 100644 (file)
@@ -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,