aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2014-02-21 16:35:47 +0100
committerEinar Johan Trøan Sømåen2014-02-21 16:35:47 +0100
commitcda0598047724433e511182ffd3b17b08233f084 (patch)
treede25ba2ecf989380c5e5052fd1f7e8ddb5b76610 /engines/wintermute
parentd23ced0aed643b2d6e3b6a70518f9412652dd817 (diff)
downloadscummvm-rg350-cda0598047724433e511182ffd3b17b08233f084.tar.gz
scummvm-rg350-cda0598047724433e511182ffd3b17b08233f084.tar.bz2
scummvm-rg350-cda0598047724433e511182ffd3b17b08233f084.zip
WINTERMUTE: Use the correct field for dpi when loading FreeSans from scummmodern.zip
Diffstat (limited to 'engines/wintermute')
-rw-r--r--engines/wintermute/base/font/base_font_truetype.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/font/base_font_truetype.cpp b/engines/wintermute/base/font/base_font_truetype.cpp
index 1e614d3a84..c5a1e91ef5 100644
--- a/engines/wintermute/base/font/base_font_truetype.cpp
+++ b/engines/wintermute/base/font/base_font_truetype.cpp
@@ -607,7 +607,7 @@ bool BaseFontTT::initFont() {
if (themeArchive->hasFile(fallbackFilename)) {
file = nullptr;
file = themeArchive->createReadStreamForMember(fallbackFilename);
- _deletableFont = Graphics::loadTTFFont(*file, 96, _fontHeight); // Use the same dpi as WME (96 vs 72).
+ _deletableFont = Graphics::loadTTFFont(*file, _fontHeight, 96); // Use the same dpi as WME (96 vs 72).
_font = _deletableFont;
}
// We're not using BaseFileManager, so clean up after ourselves: