From 668eaea68c3b19a4deb1fa2c998a9ae597bf62ab Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 6 Dec 2008 14:37:09 +0000 Subject: Also remove explicit surface passing to IsoMap::draw() svn-id: r35261 --- engines/saga/isomap.cpp | 4 ++-- engines/saga/isomap.h | 2 +- engines/saga/scene.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/saga') 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); -- cgit v1.2.3