aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts
diff options
context:
space:
mode:
authorEugene Sandulenko2017-01-20 08:51:52 +0100
committerEugene Sandulenko2017-01-20 08:51:52 +0100
commit286a74adeb3eb145a22d7081d07ba5b20e8ccebd (patch)
tree19886cbf660fc7911ce4ad92d2432bb5ac4589f0 /graphics/fonts
parentd2e31b1869dcf03e6fe66f93df1b1e5291bd9a9b (diff)
downloadscummvm-rg350-286a74adeb3eb145a22d7081d07ba5b20e8ccebd.tar.gz
scummvm-rg350-286a74adeb3eb145a22d7081d07ba5b20e8ccebd.tar.bz2
scummvm-rg350-286a74adeb3eb145a22d7081d07ba5b20e8ccebd.zip
GRAPHICS: Fix copy/paste errors with MacFont size processing
Diffstat (limited to 'graphics/fonts')
-rw-r--r--graphics/fonts/macfont.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/fonts/macfont.cpp b/graphics/fonts/macfont.cpp
index 951202966e..fb3240ac76 100644
--- a/graphics/fonts/macfont.cpp
+++ b/graphics/fonts/macfont.cpp
@@ -131,10 +131,10 @@ bool MacFontFamily::load(Common::SeekableReadStream &stream) {
for (uint i = 0; i <= _ffNumAssoc; i++) {
_ffAssocEntries[i]._fontSize = stream.readUint16BE(); // point size of font
- _ffAssocEntries[i]._fontSize = stream.readUint16BE(); // style of font
+ _ffAssocEntries[i]._fontStyle = stream.readUint16BE(); // style of font
_ffAssocEntries[i]._fontID = stream.readUint16BE(); // font resource ID
- debug(10, " size: %d style: %d id: %d", _ffAssocEntries[i]._fontSize, _ffAssocEntries[i]._fontSize,
+ debug(10, " size: %d style: %d id: %d", _ffAssocEntries[i]._fontSize, _ffAssocEntries[i]._fontStyle,
_ffAssocEntries[i]._fontID);
}