From 0cd761086a72e9fd83c23f1c6267fe79829f3f07 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Sat, 28 Jul 2018 14:39:12 +0200 Subject: ADL: Refactor graphics code --- engines/adl/hires2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/adl/hires2.cpp') diff --git a/engines/adl/hires2.cpp b/engines/adl/hires2.cpp index 4575cf6854..4dbda103fe 100644 --- a/engines/adl/hires2.cpp +++ b/engines/adl/hires2.cpp @@ -27,7 +27,7 @@ #include "common/stream.h" #include "adl/adl_v2.h" -#include "adl/display.h" +#include "adl/display_a2.h" #include "adl/graphics.h" #include "adl/disk.h" @@ -59,7 +59,7 @@ HiResBaseEngine::HiResBaseEngine(OSystem *syst, const AdlGameDescription *gd, co } void HiResBaseEngine::init() { - _graphics = new GraphicsMan_v2(*_display); + _graphics = new GraphicsMan_v2(*static_cast(_display)); _disk = new DiskImage(); if (!_disk->open(getDiskImageName(0))) @@ -157,7 +157,7 @@ void HiRes2Engine::runIntro() { _disk->setSectorLimit(0); StreamPtr stream(_disk->createReadStream(0x00, 0xd, 0x17, 1)); - _display->setMode(DISPLAY_MODE_TEXT); + _display->setMode(Display::kModeText); Common::String str = readString(*stream); -- cgit v1.2.3