diff options
author | Eugene Sandulenko | 2006-05-26 01:05:19 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-05-26 01:05:19 +0000 |
commit | 7f8b79d5d0c98e5321c435293fdda8ebb9166cde (patch) | |
tree | 0fd5285be1f1236c7e304c5cd7c45d5251816b84 /gui/console.cpp | |
parent | 9828eb7a0b9fc96f919cbd2966ace4faf5f4515b (diff) | |
download | scummvm-rg350-7f8b79d5d0c98e5321c435293fdda8ebb9166cde.tar.gz scummvm-rg350-7f8b79d5d0c98e5321c435293fdda8ebb9166cde.tar.bz2 scummvm-rg350-7f8b79d5d0c98e5321c435293fdda8ebb9166cde.zip |
Use Courier 12pt (free one) for 2x and 3x console. Looks much more useable now.
svn-id: r22644
Diffstat (limited to 'gui/console.cpp')
-rw-r--r-- | gui/console.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index 66ef2b8e6f..419ea59c14 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -22,6 +22,7 @@ #include "common/stdafx.h" #include "gui/console.h" #include "gui/ScrollBarWidget.h" +#include "gui/eval.h" #include "base/engine.h" #include "base/version.h" @@ -88,8 +89,12 @@ ConsoleDialog::ConsoleDialog(float widthPercent, float heightPercent) void ConsoleDialog::init() { const int screenW = g_system->getOverlayWidth(); const int screenH = g_system->getOverlayHeight(); - - _font = FontMan.getFontByUsage(Graphics::FontManager::kConsoleFont); + int f = g_gui.evaluator()->getVar("Console.font"); + + if (f == EVAL_UNDEF_VAR) + _font = FontMan.getFontByUsage(Graphics::FontManager::kConsoleFont); + else + _font = g_gui.theme()->getFont((Theme::kFontStyle)f); // Calculate the real width/height (rounded to char/line multiples) _w = (uint16)(_widthPercent * screenW); |