diff options
author | Matthew Hoops | 2011-01-13 14:45:14 +0000 |
---|---|---|
committer | Matthew Hoops | 2011-01-13 14:45:14 +0000 |
commit | 095384b90faf0e0fdd28840f9c2cb2bafe95c210 (patch) | |
tree | 33c93b8b4ec74778d98c1b1fc88a929c0aef0cca /graphics/fonts/winfont.h | |
parent | 82448c0cc49433bd24da95cf23ea69c7877e7009 (diff) | |
download | scummvm-rg350-095384b90faf0e0fdd28840f9c2cb2bafe95c210.tar.gz scummvm-rg350-095384b90faf0e0fdd28840f9c2cb2bafe95c210.tar.bz2 scummvm-rg350-095384b90faf0e0fdd28840f9c2cb2bafe95c210.zip |
GRAPHICS: Use the pixel height instead of the ascent as the WinFont height
svn-id: r55224
Diffstat (limited to 'graphics/fonts/winfont.h')
-rw-r--r-- | graphics/fonts/winfont.h | 3 |
1 files changed, 1 insertions, 2 deletions
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; |