aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/gui-console.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-03 23:39:10 +0200
committerEugene Sandulenko2016-08-03 23:39:10 +0200
commit0cccd0ddd1d53b7d16e47a5b2d8ca62c87d992f4 (patch)
treec9c0be62f06ba7b5f7bebc69722a250a69e2203f /engines/wage/gui-console.cpp
parent7c12e80552af036d8029b6fc197403e25a879e66 (diff)
downloadscummvm-rg350-0cccd0ddd1d53b7d16e47a5b2d8ca62c87d992f4.tar.gz
scummvm-rg350-0cccd0ddd1d53b7d16e47a5b2d8ca62c87d992f4.tar.bz2
scummvm-rg350-0cccd0ddd1d53b7d16e47a5b2d8ca62c87d992f4.zip
GRAPHICS/WAGE: Made MacWindowManager font maping requiring font size
Diffstat (limited to 'engines/wage/gui-console.cpp')
-rw-r--r--engines/wage/gui-console.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/wage/gui-console.cpp b/engines/wage/gui-console.cpp
index 1cf98ab991..2b364d3657 100644
--- a/engines/wage/gui-console.cpp
+++ b/engines/wage/gui-console.cpp
@@ -63,12 +63,9 @@
namespace Wage {
const Graphics::Font *Gui::getConsoleFont() {
- char fontName[128];
Scene *scene = _engine->_world->_player->_currentScene;
- snprintf(fontName, 128, "%s-%d", scene->getFontName(), scene->_fontSize);
-
- return _wm.getFont(fontName, Graphics::FontManager::kConsoleFont);
+ return _wm.getFont(scene->getFontName(), Graphics::FontManager::kConsoleFont);
}
void Gui::clearOutput() {