aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/compass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pegasus/compass.cpp')
-rwxr-xr-xengines/pegasus/compass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/pegasus/compass.cpp b/engines/pegasus/compass.cpp
index 2c80c5c41d..6ae4e11a0d 100755
--- a/engines/pegasus/compass.cpp
+++ b/engines/pegasus/compass.cpp
@@ -70,9 +70,9 @@ void Compass::draw(const Common::Rect &r1) {
Common::Rect r2;
_compassImage.getSurfaceBounds(r2);
- tCoordType width = r2.width();
- tCoordType offsetH = width / 10 - bounds.width() / 2 + (getFaderValue() * width) / 450 - bounds.left;
- tCoordType offsetV = -bounds.top;
+ CoordType width = r2.width();
+ CoordType offsetH = width / 10 - bounds.width() / 2 + (getFaderValue() * width) / 450 - bounds.left;
+ CoordType offsetV = -bounds.top;
r2 = r1;
r2.translate(offsetH, offsetV);
_compassImage.drawImage(r2, r1);