mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 15:21:40 +00:00
Also remove explicit surface passing to IsoMap::draw()
svn-id: r35261
This commit is contained in:
parent
9c04b0c229
commit
668eaea68c
@ -376,9 +376,9 @@ int16 IsoMap::findMulti(int16 tileIndex, int16 absU, int16 absV, int16 absH) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void IsoMap::draw(Surface *ds) {
|
void IsoMap::draw() {
|
||||||
_tileClip = _vm->_scene->getSceneClip();
|
_tileClip = _vm->_scene->getSceneClip();
|
||||||
ds->drawRect(_tileClip, 0);
|
_vm->_gfx->getBackBuffer()->drawRect(_tileClip, 0);
|
||||||
drawTiles(NULL);
|
drawTiles(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ public:
|
|||||||
void loadMetaTiles(const byte * resourcePointer, size_t resourceLength);
|
void loadMetaTiles(const byte * resourcePointer, size_t resourceLength);
|
||||||
void loadMulti(const byte * resourcePointer, size_t resourceLength);
|
void loadMulti(const byte * resourcePointer, size_t resourceLength);
|
||||||
void freeMem();
|
void freeMem();
|
||||||
void draw(Surface *ds);
|
void draw();
|
||||||
void drawSprite(SpriteList &spriteList, int spriteNumber, const Location &location, const Point &screenPosition, int scale);
|
void drawSprite(SpriteList &spriteList, int spriteNumber, const Location &location, const Point &screenPosition, int scale);
|
||||||
void adjustScroll(bool jump);
|
void adjustScroll(bool jump);
|
||||||
void tileCoordsToScreenPoint(const Location &location, Point &position) {
|
void tileCoordsToScreenPoint(const Location &location, Point &position) {
|
||||||
|
@ -1146,7 +1146,7 @@ void Scene::processSceneResources() {
|
|||||||
void Scene::draw() {
|
void Scene::draw() {
|
||||||
if (_sceneDescription.flags & kSceneFlagISO) {
|
if (_sceneDescription.flags & kSceneFlagISO) {
|
||||||
_vm->_isoMap->adjustScroll(false);
|
_vm->_isoMap->adjustScroll(false);
|
||||||
_vm->_isoMap->draw(_vm->_gfx->getBackBuffer());
|
_vm->_isoMap->draw();
|
||||||
} else {
|
} else {
|
||||||
Rect rect;
|
Rect rect;
|
||||||
_vm->_render->getBackGroundSurface()->getRect(rect);
|
_vm->_render->getBackGroundSurface()->getRect(rect);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user