aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEngine.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2015-12-21 18:49:34 +0100
committerJohannes Schickel2015-12-21 18:49:34 +0100
commit774b3755c8daccb14a42d0a19b32c71747423569 (patch)
treebc6e1c2419ce69069427186fae4054a38e7f47ac /gui/ThemeEngine.cpp
parent366e164705a920ccd5de9dc606399f9c5b54913c (diff)
parent68be74e0a319bb31b9a934b7fd976c8c250b0260 (diff)
downloadscummvm-rg350-774b3755c8daccb14a42d0a19b32c71747423569.tar.gz
scummvm-rg350-774b3755c8daccb14a42d0a19b32c71747423569.tar.bz2
scummvm-rg350-774b3755c8daccb14a42d0a19b32c71747423569.zip
Merge pull request #639 from bgK/ttf-size-mode
GRAPHICS: TrueType font creation from character height
Diffstat (limited to 'gui/ThemeEngine.cpp')
-rw-r--r--gui/ThemeEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index 6562a1d922..536e5192e0 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -1459,7 +1459,7 @@ const Graphics::Font *ThemeEngine::loadScalableFont(const Common::String &filena
for (Common::ArchiveMemberList::const_iterator i = members.begin(), end = members.end(); i != end; ++i) {
Common::SeekableReadStream *stream = (*i)->createReadStream();
if (stream) {
- font = Graphics::loadTTFFont(*stream, pointsize, 0, Graphics::kTTFRenderModeLight,
+ font = Graphics::loadTTFFont(*stream, pointsize, Graphics::kTTFSizeModeCharacter, 0, Graphics::kTTFRenderModeLight,
#ifdef USE_TRANSLATION
TransMan.getCharsetMapping()
#else