diff options
author | SupSuper | 2019-07-12 17:33:39 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-07-14 00:46:30 +0200 |
commit | 176109da59c4358a9ef2f3903b024bf35d8bf2d0 (patch) | |
tree | 6f108c2586268e2283f9f78f8472e67536615699 | |
parent | 3b68380ca3872813f1d68fe57cf75e634202cd29 (diff) | |
download | scummvm-rg350-176109da59c4358a9ef2f3903b024bf35d8bf2d0.tar.gz scummvm-rg350-176109da59c4358a9ef2f3903b024bf35d8bf2d0.tar.bz2 scummvm-rg350-176109da59c4358a9ef2f3903b024bf35d8bf2d0.zip |
GRAPHICS: Fix wrong rect size when blitting subsurface to ManagedSurface
We want the srcRect size and not the original surface size
-rw-r--r-- | graphics/managed_surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/managed_surface.cpp b/graphics/managed_surface.cpp index 8a2911b595..2b4e702b54 100644 --- a/graphics/managed_surface.cpp +++ b/graphics/managed_surface.cpp @@ -250,7 +250,7 @@ void ManagedSurface::transBlitFrom(const Surface &src, const Common::Point &dest void ManagedSurface::transBlitFrom(const Surface &src, const Common::Rect &srcRect, const Common::Point &destPos, uint transColor, bool flipped, uint overrideColor) { transBlitFrom(src, srcRect, Common::Rect(destPos.x, destPos.y, - destPos.x + src.w, destPos.y + src.h), transColor, false, overrideColor); + destPos.x + srcRect.width(), destPos.y + srcRect.height()), transColor, false, overrideColor); } template<typename TSRC, typename TDEST> |