diff options
author | Johannes Schickel | 2013-08-03 00:33:42 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 02:52:33 +0200 |
commit | 8617edea04cfb2439de54d3ce4e64f92e5bd0416 (patch) | |
tree | 1d8f04a305152fe5d027b601c5415e4782ab1a16 /engines/saga/scene.cpp | |
parent | e59995b0b26c06a92a4ae3a78dd069e75010e74b (diff) | |
download | scummvm-rg350-8617edea04cfb2439de54d3ce4e64f92e5bd0416.tar.gz scummvm-rg350-8617edea04cfb2439de54d3ce4e64f92e5bd0416.tar.bz2 scummvm-rg350-8617edea04cfb2439de54d3ce4e64f92e5bd0416.zip |
SAGA: Prefer getBasePtr over direct Surface::pixels access.
Diffstat (limited to 'engines/saga/scene.cpp')
-rw-r--r-- | engines/saga/scene.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/saga/scene.cpp b/engines/saga/scene.cpp index 75876b1c90..23d3015afd 100644 --- a/engines/saga/scene.cpp +++ b/engines/saga/scene.cpp @@ -468,7 +468,7 @@ void Scene::changeScene(int16 sceneNumber, int actorsEntrance, SceneTransitionTy pal = decoder.getPalette(); rect.setWidth(decoder.getSurface()->w); rect.setHeight(decoder.getSurface()->h); - _vm->_gfx->drawRegion(rect, (const byte *)decoder.getSurface()->pixels); + _vm->_gfx->drawRegion(rect, (const byte *)decoder.getSurface()->getBasePtr(0, 0)); for (int j = 0; j < PAL_ENTRIES; j++) { cPal[j].red = *pal++; cPal[j].green = *pal++; @@ -1120,9 +1120,9 @@ void Scene::draw() { _vm->_render->getBackGroundSurface()->getRect(rect); rect.bottom = (_sceneClip.bottom < rect.bottom) ? getHeight() : rect.bottom; if (_vm->_render->isFullRefresh()) - _vm->_gfx->drawRegion(rect, (const byte *)_vm->_render->getBackGroundSurface()->pixels); + _vm->_gfx->drawRegion(rect, (const byte *)_vm->_render->getBackGroundSurface()->getBasePtr(0, 0)); else - _vm->_gfx->drawBgRegion(rect, (const byte *)_vm->_render->getBackGroundSurface()->pixels); + _vm->_gfx->drawBgRegion(rect, (const byte *)_vm->_render->getBackGroundSurface()->getBasePtr(0, 0)); } } |