Not reviewed. Another Wx build fix.
authorzimmermann@webkit.org <zimmermann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Jan 2008 00:49:41 +0000 (00:49 +0000)
committerzimmermann@webkit.org <zimmermann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Jan 2008 00:49:41 +0000 (00:49 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29708 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/graphics/wx/FontWx.cpp

index ec41de2..8207b57 100644 (file)
@@ -1,3 +1,10 @@
+2008-01-21  Nikolas Zimmermann  <zimmermann@kde.org>
+
+        Not reviewed. Another Wx build fix.
+
+        * platform/graphics/wx/FontWx.cpp:
+        (WebCore::Font::drawGlyphs):
+
 2008-01-21  Darin Adler  <darin@apple.com>
 
         - try to fix Qt build
index 7ec532a..adc6ad9 100644 (file)
@@ -68,7 +68,7 @@ void Font::drawGlyphs(GraphicsContext* graphicsContext, const SimpleFontData* fo
     }
     
     // the y point is actually the bottom point of the text, turn it into the top
-    float height = font->ascent(size()) - font->descent(size());
+    float height = font->ascent() - font->descent();
     wxCoord ypoint = (wxCoord) (point.y() - height);
      
     dc->DrawText(text, (wxCoord)point.x(), ypoint);