aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts/winfont.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-01-13 14:45:14 +0000
committerMatthew Hoops2011-01-13 14:45:14 +0000
commit095384b90faf0e0fdd28840f9c2cb2bafe95c210 (patch)
tree33c93b8b4ec74778d98c1b1fc88a929c0aef0cca /graphics/fonts/winfont.cpp
parent82448c0cc49433bd24da95cf23ea69c7877e7009 (diff)
downloadscummvm-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.cpp')
-rw-r--r--graphics/fonts/winfont.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/graphics/fonts/winfont.cpp b/graphics/fonts/winfont.cpp
index c66e578040..98b8032a9b 100644
--- a/graphics/fonts/winfont.cpp
+++ b/graphics/fonts/winfont.cpp
@@ -40,7 +40,6 @@ WinFont::~WinFont() {
void WinFont::close() {
_pixHeight = 0;
- _ascent = 0;
_maxWidth = 0;
_firstChar = 0;
_lastChar = 0;
@@ -185,7 +184,7 @@ bool WinFont::loadFromFNT(Common::SeekableReadStream &stream) {
/* uint16 points = */ stream.readUint16LE();
/* uint16 vertRes = */ stream.readUint16LE();
/* uint16 horizRes = */ stream.readUint16LE();
- _ascent = stream.readUint16LE();
+ /* uint16 ascent = */ stream.readUint16LE();
/* uint16 internalLeading = */ stream.readUint16LE();
/* uint16 externalLeading = */ stream.readUint16LE();
/* byte italic = */ stream.readByte();