aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/backgroundresource.cpp
diff options
context:
space:
mode:
authorjohndoe1232014-03-17 12:57:39 +0100
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commitf98c0defe561889fa40694484ee251174c59f5a4 (patch)
tree716069d7038e4178058e4b15360511a02b106bf3 /engines/illusions/backgroundresource.cpp
parent9385238a59dc5e1790a21a8f9eaf761fc93a660e (diff)
downloadscummvm-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.cpp3
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);
}
}