aboutsummaryrefslogtreecommitdiff
path: root/scumm/sprite_he.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-05-23 02:00:49 +0000
committerEugene Sandulenko2005-05-23 02:00:49 +0000
commitb9e8e4080559f0ce9b249d3fb4c39db1431692f0 (patch)
tree795aef28cb3fdae36054ed096b2cfee8adc9f694 /scumm/sprite_he.cpp
parentf7e418d6384236c66ecb88190f815e0380d71382 (diff)
downloadscummvm-rg350-b9e8e4080559f0ce9b249d3fb4c39db1431692f0.tar.gz
scummvm-rg350-b9e8e4080559f0ce9b249d3fb4c39db1431692f0.tar.bz2
scummvm-rg350-b9e8e4080559f0ce9b249d3fb4c39db1431692f0.zip
Turn Wiz struct into class as requested.
svn-id: r18224
Diffstat (limited to 'scumm/sprite_he.cpp')
-rw-r--r--scumm/sprite_he.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp
index 3e3dc6b30c..281a9c6ad8 100644
--- a/scumm/sprite_he.cpp
+++ b/scumm/sprite_he.cpp
@@ -85,14 +85,14 @@ void ScummEngine_v90he::getSpriteBounds(int spriteId, bool checkGroup, Common::R
}
}
if ((spi->flags & kSFRotated) && angle)
- _wiz.polygonRotatePoints(pts, 4, angle);
+ _wiz->polygonRotatePoints(pts, 4, angle);
for (int j = 0; j < 4; ++j) {
pts[j].x += x1;
pts[j].y += y1;
}
- _wiz.polygonCalcBoundBox(pts, 4, bound);
+ _wiz->polygonCalcBoundBox(pts, 4, bound);
}
} else {
bound.left = 1234;
@@ -195,7 +195,7 @@ int ScummEngine_v90he::findSpriteWithClassOf(int x_pos, int y_pos, int spriteGro
if (spi->flags & kSFRotated && angle) {
angle = (360 - angle) % 360;
Common::Point pts[1];
- _wiz.polygonRotatePoints(pts, 1, angle);
+ _wiz->polygonRotatePoints(pts, 1, angle);
}
getWizImageDim(resId, resState, w, h);
@@ -1314,14 +1314,14 @@ void ScummEngine_v90he::spritesProcessWiz(bool arg) {
}
}
if ((spi->flags & kSFRotated) && angle)
- _wiz.polygonRotatePoints(pts, 4, angle);
+ _wiz->polygonRotatePoints(pts, 4, angle);
for (int j = 0; j < 4; ++j) {
pts[j].x += wiz.img.x1;
pts[j].y += wiz.img.y1;
}
- _wiz.polygonCalcBoundBox(pts, 4, spi->bbox);
+ _wiz->polygonCalcBoundBox(pts, 4, spi->bbox);
}
} else {
bboxPtr->left = 1234;