From 074bc1f47e0d66ba9c824311fc31cd18224fecb3 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 4 Oct 2015 01:57:55 +0200 Subject: SHERLOCK: Fix drawing glitch mentioned in bug #6928 This would happen when drawing an unscaled, flipped sprite that was clipped because it was partway below the bottom of the screen. It was incorrectly adjusting the top and bottom again, even though flipping only affects left and right. --- engines/sherlock/surface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/sherlock/surface.cpp b/engines/sherlock/surface.cpp index d7d5cd95e8..b7fc76325c 100644 --- a/engines/sherlock/surface.cpp +++ b/engines/sherlock/surface.cpp @@ -155,8 +155,8 @@ void Surface::transBlitFromUnscaled(const Graphics::Surface &src, const Common:: return; if (flipped) - drawRect = Common::Rect(src.w - drawRect.right, src.h - drawRect.bottom, - src.w - drawRect.left, src.h - drawRect.top); + drawRect = Common::Rect(src.w - drawRect.right, drawRect.top, + src.w - drawRect.left, drawRect.bottom); Common::Point destPt(destRect.left, destRect.top); addDirtyRect(Common::Rect(destPt.x, destPt.y, destPt.x + drawRect.width(), -- cgit v1.2.3