diff options
author | Filippos Karapetis | 2008-12-06 14:37:09 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-12-06 14:37:09 +0000 |
commit | 668eaea68c3b19a4deb1fa2c998a9ae597bf62ab (patch) | |
tree | 15bf141f326759195c57f20a9ec1b61b6d65a4bc | |
parent | 9c04b0c2290caa67fc4b22b7a37e2abbff97c3de (diff) | |
download | scummvm-rg350-668eaea68c3b19a4deb1fa2c998a9ae597bf62ab.tar.gz scummvm-rg350-668eaea68c3b19a4deb1fa2c998a9ae597bf62ab.tar.bz2 scummvm-rg350-668eaea68c3b19a4deb1fa2c998a9ae597bf62ab.zip |
Also remove explicit surface passing to IsoMap::draw()
svn-id: r35261
-rw-r--r-- | engines/saga/isomap.cpp | 4 | ||||
-rw-r--r-- | engines/saga/isomap.h | 2 | ||||
-rw-r--r-- | engines/saga/scene.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/engines/saga/isomap.cpp b/engines/saga/isomap.cpp index 1df3c2aa26..6a4b5110dd 100644 --- a/engines/saga/isomap.cpp +++ b/engines/saga/isomap.cpp @@ -376,9 +376,9 @@ int16 IsoMap::findMulti(int16 tileIndex, int16 absU, int16 absV, int16 absH) { return 1; } -void IsoMap::draw(Surface *ds) { +void IsoMap::draw() { _tileClip = _vm->_scene->getSceneClip(); - ds->drawRect(_tileClip, 0); + _vm->_gfx->getBackBuffer()->drawRect(_tileClip, 0); drawTiles(NULL); } diff --git a/engines/saga/isomap.h b/engines/saga/isomap.h index fd84ce1518..f2e4e00495 100644 --- a/engines/saga/isomap.h +++ b/engines/saga/isomap.h @@ -162,7 +162,7 @@ public: void loadMetaTiles(const byte * resourcePointer, size_t resourceLength); void loadMulti(const byte * resourcePointer, size_t resourceLength); void freeMem(); - void draw(Surface *ds); + void draw(); void drawSprite(SpriteList &spriteList, int spriteNumber, const Location &location, const Point &screenPosition, int scale); void adjustScroll(bool jump); void tileCoordsToScreenPoint(const Location &location, Point &position) { diff --git a/engines/saga/scene.cpp b/engines/saga/scene.cpp index dafacc5588..de7ad727de 100644 --- a/engines/saga/scene.cpp +++ b/engines/saga/scene.cpp @@ -1146,7 +1146,7 @@ void Scene::processSceneResources() { void Scene::draw() { if (_sceneDescription.flags & kSceneFlagISO) { _vm->_isoMap->adjustScroll(false); - _vm->_isoMap->draw(_vm->_gfx->getBackBuffer()); + _vm->_isoMap->draw(); } else { Rect rect; _vm->_render->getBackGroundSurface()->getRect(rect); |