aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2017-07-27 22:51:44 +0200
committerEugene Sandulenko2017-08-01 10:42:21 +0200
commit2092c10d3306126f180f8017627754134350c032 (patch)
tree6d8c393eed5b22c28a477037587b78ba3709f769
parent7da077b93aff92f25eb41009891ac806de263ef4 (diff)
downloadscummvm-rg350-2092c10d3306126f180f8017627754134350c032.tar.gz
scummvm-rg350-2092c10d3306126f180f8017627754134350c032.tar.bz2
scummvm-rg350-2092c10d3306126f180f8017627754134350c032.zip
WAGE: Fix compilation with MacTextWindow enabled
-rw-r--r--engines/wage/gui.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index 54601ccc9f..541b7ff630 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -177,14 +177,13 @@ Gui::Gui(WageEngine *engine) {
//TODO: Make the font we use here work
// (currently MacFontRun::getFont gets called with the fonts being uninitialized,
// so it initializes them by itself with default params, and not those here)
- const Graphics::Font *font = _wm._fontMan->getFont(Graphics::MacFont(Graphics::kMacFontChicago, 8));
+ const Graphics::MacFont *font = new Graphics::MacFont(Graphics::kMacFontChicago, 8);
uint maxWidth = _screen.w;
- _consoleWindow = new Graphics::MacTextWindow(&_wm, const_cast<Graphics::Font *>(font), kColorBlack, kColorWhite,
- maxWidth, Graphics::kTextAlignLeft);
+ _consoleWindow = new Graphics::MacTextWindow(&_wm, font, kColorBlack, kColorWhite, maxWidth, Graphics::kTextAlignLeft);
#else
- _consoleWindow = _wm.addWindow(true, true, true);
+ _consoleWindow = _wm.addWindow(true, true, true);
#endif // USE_MACTEXTWINDOW
_consoleWindow->setCallback(consoleWindowCallback, this);