[Scummvm-git-logs] scummvm master -> 6884349534edaa2ff12293ead7b7d4a07242c0e9
bluegr
bluegr at gmail.com
Sun Aug 11 17:55:13 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
6884349534 SCI32: Fix Mirrored Pic Drawing
Commit: 6884349534edaa2ff12293ead7b7d4a07242c0e9
https://github.com/scummvm/scummvm/commit/6884349534edaa2ff12293ead7b7d4a07242c0e9
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2019-08-11T18:55:10+03:00
Commit Message:
SCI32: Fix Mirrored Pic Drawing
Fixes bug #10748
Changed paths:
engines/sci/graphics/screen_item32.cpp
diff --git a/engines/sci/graphics/screen_item32.cpp b/engines/sci/graphics/screen_item32.cpp
index 0addd77..c2ee0e4 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);
More information about the Scummvm-git-logs
mailing list