diff options
author | Johannes Schickel | 2013-08-03 02:41:27 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:52 +0200 |
commit | e30cb842101a6259633de46a9517ea46a2ba9860 (patch) | |
tree | e1b98654b4eaa7e3bd50d90cbff1639b219ca0a7 /engines/saga/scene.cpp | |
parent | aca802bd701e0043040e82f0fd61d9cf9ff3ab95 (diff) | |
download | scummvm-rg350-e30cb842101a6259633de46a9517ea46a2ba9860.tar.gz scummvm-rg350-e30cb842101a6259633de46a9517ea46a2ba9860.tar.bz2 scummvm-rg350-e30cb842101a6259633de46a9517ea46a2ba9860.zip |
SAGA: Take advantage of Sufrace::getPixels.
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 23d3015afd..eff31cf98b 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()->getBasePtr(0, 0)); + _vm->_gfx->drawRegion(rect, (const byte *)decoder.getSurface()->getPixels()); 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()->getBasePtr(0, 0)); + _vm->_gfx->drawRegion(rect, (const byte *)_vm->_render->getBackGroundSurface()->getPixels()); else - _vm->_gfx->drawBgRegion(rect, (const byte *)_vm->_render->getBackGroundSurface()->getBasePtr(0, 0)); + _vm->_gfx->drawBgRegion(rect, (const byte *)_vm->_render->getBackGroundSurface()->getPixels()); } } |