From 148814b2a6c3dffb53b8d902eb7fcfb68110bea3 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Mon, 14 Mar 2016 10:04:51 +0100 Subject: ADL: Move hires1 drawing functions into class --- engines/adl/hires2.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'engines/adl/hires2.cpp') diff --git a/engines/adl/hires2.cpp b/engines/adl/hires2.cpp index 7bdfde580c..19f447e8be 100644 --- a/engines/adl/hires2.cpp +++ b/engines/adl/hires2.cpp @@ -51,7 +51,9 @@ void HiRes2Engine::runIntro() const { delay(2000); } -void HiRes2Engine::loadData() { +void HiRes2Engine::init() { + _graphics = new Graphics_v2(*_display); + Common::File f; if (!f.open(IDS_HR2_DISK_IMAGE)) @@ -122,8 +124,7 @@ void HiRes2Engine::restartGame() { } void HiRes2Engine::drawPic(byte pic, Common::Point pos) const { - // Temp hack - Graphics test(*_display); + // Temp hack to show a pic Common::File f; @@ -132,7 +133,7 @@ void HiRes2Engine::drawPic(byte pic, Common::Point pos) const { f.seek(0x1000); - test.draw(f); + _graphics->drawPic(f, pos, 0); } void HiRes2Engine::showRoom() const { -- cgit v1.2.3