From 095384b90faf0e0fdd28840f9c2cb2bafe95c210 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 13 Jan 2011 14:45:14 +0000 Subject: GRAPHICS: Use the pixel height instead of the ascent as the WinFont height svn-id: r55224 --- graphics/fonts/winfont.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'graphics/fonts/winfont.h') diff --git a/graphics/fonts/winfont.h b/graphics/fonts/winfont.h index 0600527643..b23455e2d5 100644 --- a/graphics/fonts/winfont.h +++ b/graphics/fonts/winfont.h @@ -63,7 +63,7 @@ public: void close(); // Font API - int getFontHeight() const { return _ascent; } + int getFontHeight() const { return _pixHeight; } int getMaxCharWidth() const { return _maxWidth; } int getCharWidth(byte chr) const; void drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const; @@ -74,7 +74,6 @@ private: uint16 characterToIndex(byte character) const; uint16 _pixHeight; - uint16 _ascent; uint16 _maxWidth; byte _firstChar; byte _lastChar; -- cgit v1.2.3