diff options
author | johndoe123 | 2014-03-17 12:57:39 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | f98c0defe561889fa40694484ee251174c59f5a4 (patch) | |
tree | 716069d7038e4178058e4b15360511a02b106bf3 /engines/illusions/backgroundresource.cpp | |
parent | 9385238a59dc5e1790a21a8f9eaf761fc93a660e (diff) | |
download | scummvm-rg350-f98c0defe561889fa40694484ee251174c59f5a4.tar.gz scummvm-rg350-f98c0defe561889fa40694484ee251174c59f5a4.tar.bz2 scummvm-rg350-f98c0defe561889fa40694484ee251174c59f5a4.zip |
ILLUSIONS: Add Screen class and ajust code to use it
Diffstat (limited to 'engines/illusions/backgroundresource.cpp')
-rw-r--r-- | engines/illusions/backgroundresource.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/illusions/backgroundresource.cpp b/engines/illusions/backgroundresource.cpp index aef2a4ca9e..66f987a934 100644 --- a/engines/illusions/backgroundresource.cpp +++ b/engines/illusions/backgroundresource.cpp @@ -23,6 +23,7 @@ #include "illusions/illusions.h" #include "illusions/backgroundresource.h" #include "illusions/camera.h" +#include "illusions/screen.h" #include "common/str.h" namespace Illusions { @@ -192,7 +193,7 @@ void BackgroundItem::initSurface() { for (uint i = 0; i < _bgRes->_bgInfosCount; ++i) { BgInfo *bgInfo = &_bgRes->_bgInfos[i]; _panPoints[i] = bgInfo->_panPoint; - _surfaces[i] = _vm->allocSurface(bgInfo->_surfInfo); + _surfaces[i] = _vm->_screen->allocSurface(bgInfo->_surfInfo); drawTiles(_surfaces[i], bgInfo->_tileMap, bgInfo->_tilePixels); } } |