aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);