Skip to content
Permalink
Browse files

SCI32: Fix Mirrored Pic Drawing

Fixes bug #10748
  • Loading branch information...
sluicebox authored and bluegr committed Aug 11, 2019
1 parent 3023472 commit 6884349534edaa2ff12293ead7b7d4a07242c0e9
Showing with 2 additions and 4 deletions.
  1. +2 −4 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);

0 comments on commit 6884349

Please sign in to comment.
You can’t perform that action at this time.