diff options
author | Eugene Sandulenko | 2017-07-27 22:51:44 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-01 10:42:21 +0200 |
commit | 2092c10d3306126f180f8017627754134350c032 (patch) | |
tree | 6d8c393eed5b22c28a477037587b78ba3709f769 /engines | |
parent | 7da077b93aff92f25eb41009891ac806de263ef4 (diff) | |
download | scummvm-rg350-2092c10d3306126f180f8017627754134350c032.tar.gz scummvm-rg350-2092c10d3306126f180f8017627754134350c032.tar.bz2 scummvm-rg350-2092c10d3306126f180f8017627754134350c032.zip |
WAGE: Fix compilation with MacTextWindow enabled
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/gui.cpp | 7 |
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); |