aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorsluicebox2019-08-11 04:47:04 -0700
committerFilippos Karapetis2019-08-11 18:55:10 +0300
commit6884349534edaa2ff12293ead7b7d4a07242c0e9 (patch)
tree0e28b043e18b418e480fb44fd31478f61ffd7417 /engines
parent30234728d66f1051c35ee9b543457d8e6e14037a (diff)
downloadscummvm-rg350-6884349534edaa2ff12293ead7b7d4a07242c0e9.tar.gz
scummvm-rg350-6884349534edaa2ff12293ead7b7d4a07242c0e9.tar.bz2
scummvm-rg350-6884349534edaa2ff12293ead7b7d4a07242c0e9.zip
SCI32: Fix Mirrored Pic Drawing
Fixes bug #10748
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/screen_item32.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sci/graphics/screen_item32.cpp b/engines/sci/graphics/screen_item32.cpp
index 0addd773de..c2ee0e43ed 100644
--- a/engines/sci/graphics/screen_item32.cpp
+++ b/engines/sci/graphics/screen_item32.cpp
@@ -377,8 +377,7 @@ void ScreenItem::calcRects(const Plane &plane) {
}
temp.translate((celObjPic->_relativePosition.x * scriptToScreenX).toInt() - originX, 0);
- // TODO: This is weird.
- int deltaX = plane._planeRect.width() - temp.right - 1 - temp.left;
+ int deltaX = plane._planeRect.width() - temp.right - temp.left;
_scaledPosition.x += deltaX;
_screenItemRect.translate(deltaX, 0);
@@ -424,8 +423,7 @@ void ScreenItem::calcRects(const Plane &plane) {
}
temp.translate(celObjPic->_relativePosition.x - (originX * scaleX).toInt(), celObjPic->_relativePosition.y - (celObj._origin.y * scaleY).toInt());
- // TODO: This is weird.
- int deltaX = plane._gameRect.width() - temp.right - 1 - temp.left;
+ int deltaX = plane._gameRect.width() - temp.right - temp.left;
_scaledPosition.x += deltaX;
_screenItemRect.translate(deltaX, 0);