From 760d5ac733ce41a5d4a3f861234850dcc4e96c38 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Sat, 26 Mar 2016 22:48:04 +0100 Subject: ADL: Move drawPic() into base class --- engines/adl/hires2.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'engines/adl/hires2.cpp') diff --git a/engines/adl/hires2.cpp b/engines/adl/hires2.cpp index 30114d6ce4..8be868193a 100644 --- a/engines/adl/hires2.cpp +++ b/engines/adl/hires2.cpp @@ -196,13 +196,6 @@ void HiRes2Engine::restartGame() { initState(); } -void HiRes2Engine::drawPic(byte pic, Common::Point pos) const { - if (_roomData.pictures.contains(pic)) - _graphics->drawPic(*_roomData.pictures[pic]->createReadStream(), pos); - else - _graphics->drawPic(*_pictures[pic]->createReadStream(), pos); -} - void HiRes2Engine::drawItem(const Item &item, const Common::Point &pos) const { StreamPtr stream(_itemPics[item.picture - 1]->createReadStream()); stream->readByte(); // Skip clear opcode -- cgit v1.2.3